UNPKG

neos-script

Version:

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

23 lines (22 loc) 16.9 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.FlatLitToonMaterial = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function FlatLitToonMaterial(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, MainTexture = props.MainTexture, ColorMask = props.ColorMask, EmissionMap = props.EmissionMap, NormalMap = props.NormalMap, MainTextureScale = props.MainTextureScale, MainTextureOffset = props.MainTextureOffset, ColorMaskScale = props.ColorMaskScale, ColorMaskOffset = props.ColorMaskOffset, EmissionMapScale = props.EmissionMapScale, EmissionMapOffset = props.EmissionMapOffset, NormalMapScale = props.NormalMapScale, NormalMapOffset = props.NormalMapOffset, AlphaCutoff = props.AlphaCutoff, Color = props.Color, EmissionColor = props.EmissionColor, BlendMode = props.BlendMode, ZWrite = props.ZWrite, Shadow = props.Shadow, Outline = props.Outline, OutlineWidth = props.OutlineWidth, OutlineColor = props.OutlineColor, OutlineTint = props.OutlineTint, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.FlatLitToonMaterial", 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.AssetRef`1[FrooxEngine.ITexture2D]", name: "MainTexture", id: typeof MainTexture === "object" && "id" in MainTexture ? MainTexture === null || MainTexture === void 0 ? void 0 : MainTexture.id : undefined, value: typeof MainTexture === "object" && "value" in MainTexture ? MainTexture === null || MainTexture === void 0 ? void 0 : MainTexture.value : MainTexture, isRaw: typeof MainTexture === "object" && "isRaw" in MainTexture && MainTexture.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.AssetRef`1[FrooxEngine.ITexture2D]", name: "EmissionMap", id: typeof EmissionMap === "object" && "id" in EmissionMap ? EmissionMap === null || EmissionMap === void 0 ? void 0 : EmissionMap.id : undefined, value: typeof EmissionMap === "object" && "value" in EmissionMap ? EmissionMap === null || EmissionMap === void 0 ? void 0 : EmissionMap.value : EmissionMap, isRaw: typeof EmissionMap === "object" && "isRaw" in EmissionMap && EmissionMap.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[BaseX.float2]", name: "MainTextureScale", id: typeof MainTextureScale === "object" && "id" in MainTextureScale ? MainTextureScale === null || MainTextureScale === void 0 ? void 0 : MainTextureScale.id : undefined, value: typeof MainTextureScale === "object" && "value" in MainTextureScale ? MainTextureScale === null || MainTextureScale === void 0 ? void 0 : MainTextureScale.value : MainTextureScale, isRaw: typeof MainTextureScale === "object" && "isRaw" in MainTextureScale && MainTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "MainTextureOffset", id: typeof MainTextureOffset === "object" && "id" in MainTextureOffset ? MainTextureOffset === null || MainTextureOffset === void 0 ? void 0 : MainTextureOffset.id : undefined, value: typeof MainTextureOffset === "object" && "value" in MainTextureOffset ? MainTextureOffset === null || MainTextureOffset === void 0 ? void 0 : MainTextureOffset.value : MainTextureOffset, isRaw: typeof MainTextureOffset === "object" && "isRaw" in MainTextureOffset && MainTextureOffset.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.Sync`1[BaseX.float2]", name: "EmissionMapScale", id: typeof EmissionMapScale === "object" && "id" in EmissionMapScale ? EmissionMapScale === null || EmissionMapScale === void 0 ? void 0 : EmissionMapScale.id : undefined, value: typeof EmissionMapScale === "object" && "value" in EmissionMapScale ? EmissionMapScale === null || EmissionMapScale === void 0 ? void 0 : EmissionMapScale.value : EmissionMapScale, isRaw: typeof EmissionMapScale === "object" && "isRaw" in EmissionMapScale && EmissionMapScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "EmissionMapOffset", id: typeof EmissionMapOffset === "object" && "id" in EmissionMapOffset ? EmissionMapOffset === null || EmissionMapOffset === void 0 ? void 0 : EmissionMapOffset.id : undefined, value: typeof EmissionMapOffset === "object" && "value" in EmissionMapOffset ? EmissionMapOffset === null || EmissionMapOffset === void 0 ? void 0 : EmissionMapOffset.value : EmissionMapOffset, isRaw: typeof EmissionMapOffset === "object" && "isRaw" in EmissionMapOffset && EmissionMapOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "NormalMapScale", id: typeof NormalMapScale === "object" && "id" in NormalMapScale ? NormalMapScale === null || NormalMapScale === void 0 ? void 0 : NormalMapScale.id : undefined, value: typeof NormalMapScale === "object" && "value" in NormalMapScale ? NormalMapScale === null || NormalMapScale === void 0 ? void 0 : NormalMapScale.value : NormalMapScale, isRaw: typeof NormalMapScale === "object" && "isRaw" in NormalMapScale && NormalMapScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "NormalMapOffset", id: typeof NormalMapOffset === "object" && "id" in NormalMapOffset ? NormalMapOffset === null || NormalMapOffset === void 0 ? void 0 : NormalMapOffset.id : undefined, value: typeof NormalMapOffset === "object" && "value" in NormalMapOffset ? NormalMapOffset === null || NormalMapOffset === void 0 ? void 0 : NormalMapOffset.value : NormalMapOffset, isRaw: typeof NormalMapOffset === "object" && "isRaw" in NormalMapOffset && NormalMapOffset.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[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissionColor", id: typeof EmissionColor === "object" && "id" in EmissionColor ? EmissionColor === null || EmissionColor === void 0 ? void 0 : EmissionColor.id : undefined, value: typeof EmissionColor === "object" && "value" in EmissionColor ? EmissionColor === null || EmissionColor === void 0 ? void 0 : EmissionColor.value : EmissionColor, isRaw: typeof EmissionColor === "object" && "isRaw" in EmissionColor && EmissionColor.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[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.Single]", name: "Shadow", id: typeof Shadow === "object" && "id" in Shadow ? Shadow === null || Shadow === void 0 ? void 0 : Shadow.id : undefined, value: typeof Shadow === "object" && "value" in Shadow ? Shadow === null || Shadow === void 0 ? void 0 : Shadow.value : Shadow, isRaw: typeof Shadow === "object" && "isRaw" in Shadow && Shadow.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.FlatLitToonMaterial+OutlineStyle]", name: "Outline", id: typeof Outline === "object" && "id" in Outline ? Outline === null || Outline === void 0 ? void 0 : Outline.id : undefined, value: typeof Outline === "object" && "value" in Outline ? Outline === null || Outline === void 0 ? void 0 : Outline.value : Outline, isRaw: typeof Outline === "object" && "isRaw" in Outline && Outline.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OutlineWidth", id: typeof OutlineWidth === "object" && "id" in OutlineWidth ? OutlineWidth === null || OutlineWidth === void 0 ? void 0 : OutlineWidth.id : undefined, value: typeof OutlineWidth === "object" && "value" in OutlineWidth ? OutlineWidth === null || OutlineWidth === void 0 ? void 0 : OutlineWidth.value : OutlineWidth, isRaw: typeof OutlineWidth === "object" && "isRaw" in OutlineWidth && OutlineWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "OutlineColor", id: typeof OutlineColor === "object" && "id" in OutlineColor ? OutlineColor === null || OutlineColor === void 0 ? void 0 : OutlineColor.id : undefined, value: typeof OutlineColor === "object" && "value" in OutlineColor ? OutlineColor === null || OutlineColor === void 0 ? void 0 : OutlineColor.value : OutlineColor, isRaw: typeof OutlineColor === "object" && "isRaw" in OutlineColor && OutlineColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OutlineTint", id: typeof OutlineTint === "object" && "id" in OutlineTint ? OutlineTint === null || OutlineTint === void 0 ? void 0 : OutlineTint.id : undefined, value: typeof OutlineTint === "object" && "value" in OutlineTint ? OutlineTint === null || OutlineTint === void 0 ? void 0 : OutlineTint.value : OutlineTint, isRaw: typeof OutlineTint === "object" && "isRaw" in OutlineTint && OutlineTint.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.FlatLitToonMaterial = FlatLitToonMaterial; ;