neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 13.4 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OverlayUnlitMaterial = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function OverlayUnlitMaterial(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, BehindTintColor = props.BehindTintColor, FrontTintColor = props.FrontTintColor, BehindTexture = props.BehindTexture, BehindTextureScale = props.BehindTextureScale, BehindTextureOffset = props.BehindTextureOffset, FrontTexture = props.FrontTexture, FrontTextureScale = props.FrontTextureScale, FrontTextureOffset = props.FrontTextureOffset, BlendMode = props.BlendMode, AlphaCutoff = props.AlphaCutoff, UseVertexColors = props.UseVertexColors, Sidedness = props.Sidedness, ZWrite = props.ZWrite, PolarUVmapping = props.PolarUVmapping, PolarPower = props.PolarPower, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.OverlayUnlitMaterial", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "HighPriorityIntegration", id: typeof HighPriorityIntegration === "object" && "id" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.id : undefined, value: typeof HighPriorityIntegration === "object" && "value" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.value : HighPriorityIntegration, isRaw: typeof HighPriorityIntegration === "object" && "isRaw" in HighPriorityIntegration && HighPriorityIntegration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Shader]", name: "_shader-ID", id: typeof _shader === "object" && "id" in _shader ? _shader === null || _shader === void 0 ? void 0 : _shader.id : undefined, value: typeof _shader === "object" && "value" in _shader ? _shader === null || _shader === void 0 ? void 0 : _shader.value : _shader, readOnly: true, isRaw: typeof _shader === "object" && "isRaw" in _shader && _shader.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "BehindTintColor", id: typeof BehindTintColor === "object" && "id" in BehindTintColor ? BehindTintColor === null || BehindTintColor === void 0 ? void 0 : BehindTintColor.id : undefined, value: typeof BehindTintColor === "object" && "value" in BehindTintColor ? BehindTintColor === null || BehindTintColor === void 0 ? void 0 : BehindTintColor.value : BehindTintColor, isRaw: typeof BehindTintColor === "object" && "isRaw" in BehindTintColor && BehindTintColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "FrontTintColor", id: typeof FrontTintColor === "object" && "id" in FrontTintColor ? FrontTintColor === null || FrontTintColor === void 0 ? void 0 : FrontTintColor.id : undefined, value: typeof FrontTintColor === "object" && "value" in FrontTintColor ? FrontTintColor === null || FrontTintColor === void 0 ? void 0 : FrontTintColor.value : FrontTintColor, isRaw: typeof FrontTintColor === "object" && "isRaw" in FrontTintColor && FrontTintColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "BehindTexture", id: typeof BehindTexture === "object" && "id" in BehindTexture ? BehindTexture === null || BehindTexture === void 0 ? void 0 : BehindTexture.id : undefined, value: typeof BehindTexture === "object" && "value" in BehindTexture ? BehindTexture === null || BehindTexture === void 0 ? void 0 : BehindTexture.value : BehindTexture, isRaw: typeof BehindTexture === "object" && "isRaw" in BehindTexture && BehindTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindTextureScale", id: typeof BehindTextureScale === "object" && "id" in BehindTextureScale ? BehindTextureScale === null || BehindTextureScale === void 0 ? void 0 : BehindTextureScale.id : undefined, value: typeof BehindTextureScale === "object" && "value" in BehindTextureScale ? BehindTextureScale === null || BehindTextureScale === void 0 ? void 0 : BehindTextureScale.value : BehindTextureScale, isRaw: typeof BehindTextureScale === "object" && "isRaw" in BehindTextureScale && BehindTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindTextureOffset", id: typeof BehindTextureOffset === "object" && "id" in BehindTextureOffset ? BehindTextureOffset === null || BehindTextureOffset === void 0 ? void 0 : BehindTextureOffset.id : undefined, value: typeof BehindTextureOffset === "object" && "value" in BehindTextureOffset ? BehindTextureOffset === null || BehindTextureOffset === void 0 ? void 0 : BehindTextureOffset.value : BehindTextureOffset, isRaw: typeof BehindTextureOffset === "object" && "isRaw" in BehindTextureOffset && BehindTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FrontTexture", id: typeof FrontTexture === "object" && "id" in FrontTexture ? FrontTexture === null || FrontTexture === void 0 ? void 0 : FrontTexture.id : undefined, value: typeof FrontTexture === "object" && "value" in FrontTexture ? FrontTexture === null || FrontTexture === void 0 ? void 0 : FrontTexture.value : FrontTexture, isRaw: typeof FrontTexture === "object" && "isRaw" in FrontTexture && FrontTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontTextureScale", id: typeof FrontTextureScale === "object" && "id" in FrontTextureScale ? FrontTextureScale === null || FrontTextureScale === void 0 ? void 0 : FrontTextureScale.id : undefined, value: typeof FrontTextureScale === "object" && "value" in FrontTextureScale ? FrontTextureScale === null || FrontTextureScale === void 0 ? void 0 : FrontTextureScale.value : FrontTextureScale, isRaw: typeof FrontTextureScale === "object" && "isRaw" in FrontTextureScale && FrontTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontTextureOffset", id: typeof FrontTextureOffset === "object" && "id" in FrontTextureOffset ? FrontTextureOffset === null || FrontTextureOffset === void 0 ? void 0 : FrontTextureOffset.id : undefined, value: typeof FrontTextureOffset === "object" && "value" in FrontTextureOffset ? FrontTextureOffset === null || FrontTextureOffset === void 0 ? void 0 : FrontTextureOffset.value : FrontTextureOffset, isRaw: typeof FrontTextureOffset === "object" && "isRaw" in FrontTextureOffset && FrontTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.BlendMode]", name: "BlendMode", id: typeof BlendMode === "object" && "id" in BlendMode ? BlendMode === null || BlendMode === void 0 ? void 0 : BlendMode.id : undefined, value: typeof BlendMode === "object" && "value" in BlendMode ? BlendMode === null || BlendMode === void 0 ? void 0 : BlendMode.value : BlendMode, isRaw: typeof BlendMode === "object" && "isRaw" in BlendMode && BlendMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "AlphaCutoff", id: typeof AlphaCutoff === "object" && "id" in AlphaCutoff ? AlphaCutoff === null || AlphaCutoff === void 0 ? void 0 : AlphaCutoff.id : undefined, value: typeof AlphaCutoff === "object" && "value" in AlphaCutoff ? AlphaCutoff === null || AlphaCutoff === void 0 ? void 0 : AlphaCutoff.value : AlphaCutoff, isRaw: typeof AlphaCutoff === "object" && "isRaw" in AlphaCutoff && AlphaCutoff.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "UseVertexColors", id: typeof UseVertexColors === "object" && "id" in UseVertexColors ? UseVertexColors === null || UseVertexColors === void 0 ? void 0 : UseVertexColors.id : undefined, value: typeof UseVertexColors === "object" && "value" in UseVertexColors ? UseVertexColors === null || UseVertexColors === void 0 ? void 0 : UseVertexColors.value : UseVertexColors, isRaw: typeof UseVertexColors === "object" && "isRaw" in UseVertexColors && UseVertexColors.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.Sidedness]", name: "Sidedness", id: typeof Sidedness === "object" && "id" in Sidedness ? Sidedness === null || Sidedness === void 0 ? void 0 : Sidedness.id : undefined, value: typeof Sidedness === "object" && "value" in Sidedness ? Sidedness === null || Sidedness === void 0 ? void 0 : Sidedness.value : Sidedness, isRaw: typeof Sidedness === "object" && "isRaw" in Sidedness && Sidedness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ZWrite]", name: "ZWrite", id: typeof ZWrite === "object" && "id" in ZWrite ? ZWrite === null || ZWrite === void 0 ? void 0 : ZWrite.id : undefined, value: typeof ZWrite === "object" && "value" in ZWrite ? ZWrite === null || ZWrite === void 0 ? void 0 : ZWrite.value : ZWrite, isRaw: typeof ZWrite === "object" && "isRaw" in ZWrite && ZWrite.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PolarUVmapping", id: typeof PolarUVmapping === "object" && "id" in PolarUVmapping ? PolarUVmapping === null || PolarUVmapping === void 0 ? void 0 : PolarUVmapping.id : undefined, value: typeof PolarUVmapping === "object" && "value" in PolarUVmapping ? PolarUVmapping === null || PolarUVmapping === void 0 ? void 0 : PolarUVmapping.value : PolarUVmapping, isRaw: typeof PolarUVmapping === "object" && "isRaw" in PolarUVmapping && PolarUVmapping.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PolarPower", id: typeof PolarPower === "object" && "id" in PolarPower ? PolarPower === null || PolarPower === void 0 ? void 0 : PolarPower.id : undefined, value: typeof PolarPower === "object" && "value" in PolarPower ? PolarPower === null || PolarPower === void 0 ? void 0 : PolarPower.value : PolarPower, isRaw: typeof PolarPower === "object" && "isRaw" in PolarPower && PolarPower.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OffsetFactor", id: typeof OffsetFactor === "object" && "id" in OffsetFactor ? OffsetFactor === null || OffsetFactor === void 0 ? void 0 : OffsetFactor.id : undefined, value: typeof OffsetFactor === "object" && "value" in OffsetFactor ? OffsetFactor === null || OffsetFactor === void 0 ? void 0 : OffsetFactor.value : OffsetFactor, isRaw: typeof OffsetFactor === "object" && "isRaw" in OffsetFactor && OffsetFactor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OffsetUnits", id: typeof OffsetUnits === "object" && "id" in OffsetUnits ? OffsetUnits === null || OffsetUnits === void 0 ? void 0 : OffsetUnits.id : undefined, value: typeof OffsetUnits === "object" && "value" in OffsetUnits ? OffsetUnits === null || OffsetUnits === void 0 ? void 0 : OffsetUnits.value : OffsetUnits, isRaw: typeof OffsetUnits === "object" && "isRaw" in OffsetUnits && OffsetUnits.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "RenderQueue", id: typeof RenderQueue === "object" && "id" in RenderQueue ? RenderQueue === null || RenderQueue === void 0 ? void 0 : RenderQueue.id : undefined, value: typeof RenderQueue === "object" && "value" in RenderQueue ? RenderQueue === null || RenderQueue === void 0 ? void 0 : RenderQueue.value : RenderQueue, isRaw: typeof RenderQueue === "object" && "isRaw" in RenderQueue && RenderQueue.isRaw ? true : undefined })] })));
}
exports.OverlayUnlitMaterial = OverlayUnlitMaterial;
;