UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 18.7 kB
"use strict"; 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.PBS_ColorMaskSpecular = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function PBS_ColorMaskSpecular(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, TextureScale = props.TextureScale, TextureOffset = props.TextureOffset, ColorMaskScale = props.ColorMaskScale, ColorMaskOffset = props.ColorMaskOffset, ColorMask = props.ColorMask, AlbedoColor0 = props.AlbedoColor0, AlbedoColor1 = props.AlbedoColor1, AlbedoColor2 = props.AlbedoColor2, AlbedoColor3 = props.AlbedoColor3, AlbedoTexture = props.AlbedoTexture, EmissiveColor0 = props.EmissiveColor0, EmissiveColor1 = props.EmissiveColor1, EmissiveColor2 = props.EmissiveColor2, EmissiveColor3 = props.EmissiveColor3, EmissiveMap = props.EmissiveMap, NormalMap = props.NormalMap, NormalScale = props.NormalScale, OcclusionMap = props.OcclusionMap, Transparent = props.Transparent, ForceZWrite = props.ForceZWrite, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue, SpecularColor = props.SpecularColor, SpecularMap = props.SpecularMap, _regular = props._regular, _transparent = props._transparent, _zwrite = props._zwrite; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PBS_ColorMaskSpecular", 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.float2]", name: "TextureScale", id: typeof TextureScale === "object" && "id" in TextureScale ? TextureScale === null || TextureScale === void 0 ? void 0 : TextureScale.id : undefined, value: typeof TextureScale === "object" && "value" in TextureScale ? TextureScale === null || TextureScale === void 0 ? void 0 : TextureScale.value : TextureScale, isRaw: typeof TextureScale === "object" && "isRaw" in TextureScale && TextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "TextureOffset", id: typeof TextureOffset === "object" && "id" in TextureOffset ? TextureOffset === null || TextureOffset === void 0 ? void 0 : TextureOffset.id : undefined, value: typeof TextureOffset === "object" && "value" in TextureOffset ? TextureOffset === null || TextureOffset === void 0 ? void 0 : TextureOffset.value : TextureOffset, isRaw: typeof TextureOffset === "object" && "isRaw" in TextureOffset && TextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "ColorMaskScale", id: typeof ColorMaskScale === "object" && "id" in ColorMaskScale ? ColorMaskScale === null || ColorMaskScale === void 0 ? void 0 : ColorMaskScale.id : undefined, value: typeof ColorMaskScale === "object" && "value" in ColorMaskScale ? ColorMaskScale === null || ColorMaskScale === void 0 ? void 0 : ColorMaskScale.value : ColorMaskScale, isRaw: typeof ColorMaskScale === "object" && "isRaw" in ColorMaskScale && ColorMaskScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "ColorMaskOffset", id: typeof ColorMaskOffset === "object" && "id" in ColorMaskOffset ? ColorMaskOffset === null || ColorMaskOffset === void 0 ? void 0 : ColorMaskOffset.id : undefined, value: typeof ColorMaskOffset === "object" && "value" in ColorMaskOffset ? ColorMaskOffset === null || ColorMaskOffset === void 0 ? void 0 : ColorMaskOffset.value : ColorMaskOffset, isRaw: typeof ColorMaskOffset === "object" && "isRaw" in ColorMaskOffset && ColorMaskOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "ColorMask", id: typeof ColorMask === "object" && "id" in ColorMask ? ColorMask === null || ColorMask === void 0 ? void 0 : ColorMask.id : undefined, value: typeof ColorMask === "object" && "value" in ColorMask ? ColorMask === null || ColorMask === void 0 ? void 0 : ColorMask.value : ColorMask, isRaw: typeof ColorMask === "object" && "isRaw" in ColorMask && ColorMask.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "AlbedoColor0", id: typeof AlbedoColor0 === "object" && "id" in AlbedoColor0 ? AlbedoColor0 === null || AlbedoColor0 === void 0 ? void 0 : AlbedoColor0.id : undefined, value: typeof AlbedoColor0 === "object" && "value" in AlbedoColor0 ? AlbedoColor0 === null || AlbedoColor0 === void 0 ? void 0 : AlbedoColor0.value : AlbedoColor0, isRaw: typeof AlbedoColor0 === "object" && "isRaw" in AlbedoColor0 && AlbedoColor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "AlbedoColor1", id: typeof AlbedoColor1 === "object" && "id" in AlbedoColor1 ? AlbedoColor1 === null || AlbedoColor1 === void 0 ? void 0 : AlbedoColor1.id : undefined, value: typeof AlbedoColor1 === "object" && "value" in AlbedoColor1 ? AlbedoColor1 === null || AlbedoColor1 === void 0 ? void 0 : AlbedoColor1.value : AlbedoColor1, isRaw: typeof AlbedoColor1 === "object" && "isRaw" in AlbedoColor1 && AlbedoColor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "AlbedoColor2", id: typeof AlbedoColor2 === "object" && "id" in AlbedoColor2 ? AlbedoColor2 === null || AlbedoColor2 === void 0 ? void 0 : AlbedoColor2.id : undefined, value: typeof AlbedoColor2 === "object" && "value" in AlbedoColor2 ? AlbedoColor2 === null || AlbedoColor2 === void 0 ? void 0 : AlbedoColor2.value : AlbedoColor2, isRaw: typeof AlbedoColor2 === "object" && "isRaw" in AlbedoColor2 && AlbedoColor2.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "AlbedoColor3", id: typeof AlbedoColor3 === "object" && "id" in AlbedoColor3 ? AlbedoColor3 === null || AlbedoColor3 === void 0 ? void 0 : AlbedoColor3.id : undefined, value: typeof AlbedoColor3 === "object" && "value" in AlbedoColor3 ? AlbedoColor3 === null || AlbedoColor3 === void 0 ? void 0 : AlbedoColor3.value : AlbedoColor3, isRaw: typeof AlbedoColor3 === "object" && "isRaw" in AlbedoColor3 && AlbedoColor3.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "AlbedoTexture", id: typeof AlbedoTexture === "object" && "id" in AlbedoTexture ? AlbedoTexture === null || AlbedoTexture === void 0 ? void 0 : AlbedoTexture.id : undefined, value: typeof AlbedoTexture === "object" && "value" in AlbedoTexture ? AlbedoTexture === null || AlbedoTexture === void 0 ? void 0 : AlbedoTexture.value : AlbedoTexture, isRaw: typeof AlbedoTexture === "object" && "isRaw" in AlbedoTexture && AlbedoTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissiveColor0", id: typeof EmissiveColor0 === "object" && "id" in EmissiveColor0 ? EmissiveColor0 === null || EmissiveColor0 === void 0 ? void 0 : EmissiveColor0.id : undefined, value: typeof EmissiveColor0 === "object" && "value" in EmissiveColor0 ? EmissiveColor0 === null || EmissiveColor0 === void 0 ? void 0 : EmissiveColor0.value : EmissiveColor0, isRaw: typeof EmissiveColor0 === "object" && "isRaw" in EmissiveColor0 && EmissiveColor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissiveColor1", id: typeof EmissiveColor1 === "object" && "id" in EmissiveColor1 ? EmissiveColor1 === null || EmissiveColor1 === void 0 ? void 0 : EmissiveColor1.id : undefined, value: typeof EmissiveColor1 === "object" && "value" in EmissiveColor1 ? EmissiveColor1 === null || EmissiveColor1 === void 0 ? void 0 : EmissiveColor1.value : EmissiveColor1, isRaw: typeof EmissiveColor1 === "object" && "isRaw" in EmissiveColor1 && EmissiveColor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissiveColor2", id: typeof EmissiveColor2 === "object" && "id" in EmissiveColor2 ? EmissiveColor2 === null || EmissiveColor2 === void 0 ? void 0 : EmissiveColor2.id : undefined, value: typeof EmissiveColor2 === "object" && "value" in EmissiveColor2 ? EmissiveColor2 === null || EmissiveColor2 === void 0 ? void 0 : EmissiveColor2.value : EmissiveColor2, isRaw: typeof EmissiveColor2 === "object" && "isRaw" in EmissiveColor2 && EmissiveColor2.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissiveColor3", id: typeof EmissiveColor3 === "object" && "id" in EmissiveColor3 ? EmissiveColor3 === null || EmissiveColor3 === void 0 ? void 0 : EmissiveColor3.id : undefined, value: typeof EmissiveColor3 === "object" && "value" in EmissiveColor3 ? EmissiveColor3 === null || EmissiveColor3 === void 0 ? void 0 : EmissiveColor3.value : EmissiveColor3, isRaw: typeof EmissiveColor3 === "object" && "isRaw" in EmissiveColor3 && EmissiveColor3.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "EmissiveMap", id: typeof EmissiveMap === "object" && "id" in EmissiveMap ? EmissiveMap === null || EmissiveMap === void 0 ? void 0 : EmissiveMap.id : undefined, value: typeof EmissiveMap === "object" && "value" in EmissiveMap ? EmissiveMap === null || EmissiveMap === void 0 ? void 0 : EmissiveMap.value : EmissiveMap, isRaw: typeof EmissiveMap === "object" && "isRaw" in EmissiveMap && EmissiveMap.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NormalMap", id: typeof NormalMap === "object" && "id" in NormalMap ? NormalMap === null || NormalMap === void 0 ? void 0 : NormalMap.id : undefined, value: typeof NormalMap === "object" && "value" in NormalMap ? NormalMap === null || NormalMap === void 0 ? void 0 : NormalMap.value : NormalMap, isRaw: typeof NormalMap === "object" && "isRaw" in NormalMap && NormalMap.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "NormalScale", id: typeof NormalScale === "object" && "id" in NormalScale ? NormalScale === null || NormalScale === void 0 ? void 0 : NormalScale.id : undefined, value: typeof NormalScale === "object" && "value" in NormalScale ? NormalScale === null || NormalScale === void 0 ? void 0 : NormalScale.value : NormalScale, isRaw: typeof NormalScale === "object" && "isRaw" in NormalScale && NormalScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "OcclusionMap", id: typeof OcclusionMap === "object" && "id" in OcclusionMap ? OcclusionMap === null || OcclusionMap === void 0 ? void 0 : OcclusionMap.id : undefined, value: typeof OcclusionMap === "object" && "value" in OcclusionMap ? OcclusionMap === null || OcclusionMap === void 0 ? void 0 : OcclusionMap.value : OcclusionMap, isRaw: typeof OcclusionMap === "object" && "isRaw" in OcclusionMap && OcclusionMap.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Transparent", id: typeof Transparent === "object" && "id" in Transparent ? Transparent === null || Transparent === void 0 ? void 0 : Transparent.id : undefined, value: typeof Transparent === "object" && "value" in Transparent ? Transparent === null || Transparent === void 0 ? void 0 : Transparent.value : Transparent, isRaw: typeof Transparent === "object" && "isRaw" in Transparent && Transparent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ForceZWrite", id: typeof ForceZWrite === "object" && "id" in ForceZWrite ? ForceZWrite === null || ForceZWrite === void 0 ? void 0 : ForceZWrite.id : undefined, value: typeof ForceZWrite === "object" && "value" in ForceZWrite ? ForceZWrite === null || ForceZWrite === void 0 ? void 0 : ForceZWrite.value : ForceZWrite, isRaw: typeof ForceZWrite === "object" && "isRaw" in ForceZWrite && ForceZWrite.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 }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "SpecularColor", id: typeof SpecularColor === "object" && "id" in SpecularColor ? SpecularColor === null || SpecularColor === void 0 ? void 0 : SpecularColor.id : undefined, value: typeof SpecularColor === "object" && "value" in SpecularColor ? SpecularColor === null || SpecularColor === void 0 ? void 0 : SpecularColor.value : SpecularColor, isRaw: typeof SpecularColor === "object" && "isRaw" in SpecularColor && SpecularColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "SpecularMap", id: typeof SpecularMap === "object" && "id" in SpecularMap ? SpecularMap === null || SpecularMap === void 0 ? void 0 : SpecularMap.id : undefined, value: typeof SpecularMap === "object" && "value" in SpecularMap ? SpecularMap === null || SpecularMap === void 0 ? void 0 : SpecularMap.value : SpecularMap, isRaw: typeof SpecularMap === "object" && "isRaw" in SpecularMap && SpecularMap.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Shader]", name: "_regular-ID", id: typeof _regular === "object" && "id" in _regular ? _regular === null || _regular === void 0 ? void 0 : _regular.id : undefined, value: typeof _regular === "object" && "value" in _regular ? _regular === null || _regular === void 0 ? void 0 : _regular.value : _regular, readOnly: true, isRaw: typeof _regular === "object" && "isRaw" in _regular && _regular.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Shader]", name: "_transparent-ID", id: typeof _transparent === "object" && "id" in _transparent ? _transparent === null || _transparent === void 0 ? void 0 : _transparent.id : undefined, value: typeof _transparent === "object" && "value" in _transparent ? _transparent === null || _transparent === void 0 ? void 0 : _transparent.value : _transparent, readOnly: true, isRaw: typeof _transparent === "object" && "isRaw" in _transparent && _transparent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Shader]", name: "_zwrite-ID", 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, readOnly: true, isRaw: typeof _zwrite === "object" && "isRaw" in _zwrite && _zwrite.isRaw ? true : undefined })] }))); } exports.PBS_ColorMaskSpecular = PBS_ColorMaskSpecular; ;