UNPKG

neos-script

Version:

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

23 lines (22 loc) 19 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.OverlayFresnelMaterial = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function OverlayFresnelMaterial(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, Exponent = props.Exponent, BehindFarColor = props.BehindFarColor, BehindNearColor = props.BehindNearColor, FrontFarColor = props.FrontFarColor, FrontNearColor = props.FrontNearColor, BehindFarTexture = props.BehindFarTexture, BehindNearTexture = props.BehindNearTexture, FrontFarTexture = props.FrontFarTexture, FrontNearTexture = props.FrontNearTexture, BehindFarTextureScale = props.BehindFarTextureScale, BehindFarTextureOffset = props.BehindFarTextureOffset, BehindNearTextureScale = props.BehindNearTextureScale, BehindNearTextureOffset = props.BehindNearTextureOffset, FrontFarTextureScale = props.FrontFarTextureScale, FrontFarTextureOffset = props.FrontFarTextureOffset, FrontNearTextureScale = props.FrontNearTextureScale, FrontNearTextureOffset = props.FrontNearTextureOffset, NormalMap = props.NormalMap, BlendMode = props.BlendMode, Sidedness = props.Sidedness, ZWrite = props.ZWrite, RenderQueue = props.RenderQueue, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, PolarUVmapping = props.PolarUVmapping, PolarPower = props.PolarPower; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.OverlayFresnelMaterial", 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[System.Single]", name: "Exponent", id: typeof Exponent === "object" && "id" in Exponent ? Exponent === null || Exponent === void 0 ? void 0 : Exponent.id : undefined, value: typeof Exponent === "object" && "value" in Exponent ? Exponent === null || Exponent === void 0 ? void 0 : Exponent.value : Exponent, isRaw: typeof Exponent === "object" && "isRaw" in Exponent && Exponent.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "BehindFarColor", id: typeof BehindFarColor === "object" && "id" in BehindFarColor ? BehindFarColor === null || BehindFarColor === void 0 ? void 0 : BehindFarColor.id : undefined, value: typeof BehindFarColor === "object" && "value" in BehindFarColor ? BehindFarColor === null || BehindFarColor === void 0 ? void 0 : BehindFarColor.value : BehindFarColor, isRaw: typeof BehindFarColor === "object" && "isRaw" in BehindFarColor && BehindFarColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "BehindNearColor", id: typeof BehindNearColor === "object" && "id" in BehindNearColor ? BehindNearColor === null || BehindNearColor === void 0 ? void 0 : BehindNearColor.id : undefined, value: typeof BehindNearColor === "object" && "value" in BehindNearColor ? BehindNearColor === null || BehindNearColor === void 0 ? void 0 : BehindNearColor.value : BehindNearColor, isRaw: typeof BehindNearColor === "object" && "isRaw" in BehindNearColor && BehindNearColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "FrontFarColor", id: typeof FrontFarColor === "object" && "id" in FrontFarColor ? FrontFarColor === null || FrontFarColor === void 0 ? void 0 : FrontFarColor.id : undefined, value: typeof FrontFarColor === "object" && "value" in FrontFarColor ? FrontFarColor === null || FrontFarColor === void 0 ? void 0 : FrontFarColor.value : FrontFarColor, isRaw: typeof FrontFarColor === "object" && "isRaw" in FrontFarColor && FrontFarColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "FrontNearColor", id: typeof FrontNearColor === "object" && "id" in FrontNearColor ? FrontNearColor === null || FrontNearColor === void 0 ? void 0 : FrontNearColor.id : undefined, value: typeof FrontNearColor === "object" && "value" in FrontNearColor ? FrontNearColor === null || FrontNearColor === void 0 ? void 0 : FrontNearColor.value : FrontNearColor, isRaw: typeof FrontNearColor === "object" && "isRaw" in FrontNearColor && FrontNearColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "BehindFarTexture", id: typeof BehindFarTexture === "object" && "id" in BehindFarTexture ? BehindFarTexture === null || BehindFarTexture === void 0 ? void 0 : BehindFarTexture.id : undefined, value: typeof BehindFarTexture === "object" && "value" in BehindFarTexture ? BehindFarTexture === null || BehindFarTexture === void 0 ? void 0 : BehindFarTexture.value : BehindFarTexture, isRaw: typeof BehindFarTexture === "object" && "isRaw" in BehindFarTexture && BehindFarTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "BehindNearTexture", id: typeof BehindNearTexture === "object" && "id" in BehindNearTexture ? BehindNearTexture === null || BehindNearTexture === void 0 ? void 0 : BehindNearTexture.id : undefined, value: typeof BehindNearTexture === "object" && "value" in BehindNearTexture ? BehindNearTexture === null || BehindNearTexture === void 0 ? void 0 : BehindNearTexture.value : BehindNearTexture, isRaw: typeof BehindNearTexture === "object" && "isRaw" in BehindNearTexture && BehindNearTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FrontFarTexture", id: typeof FrontFarTexture === "object" && "id" in FrontFarTexture ? FrontFarTexture === null || FrontFarTexture === void 0 ? void 0 : FrontFarTexture.id : undefined, value: typeof FrontFarTexture === "object" && "value" in FrontFarTexture ? FrontFarTexture === null || FrontFarTexture === void 0 ? void 0 : FrontFarTexture.value : FrontFarTexture, isRaw: typeof FrontFarTexture === "object" && "isRaw" in FrontFarTexture && FrontFarTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FrontNearTexture", id: typeof FrontNearTexture === "object" && "id" in FrontNearTexture ? FrontNearTexture === null || FrontNearTexture === void 0 ? void 0 : FrontNearTexture.id : undefined, value: typeof FrontNearTexture === "object" && "value" in FrontNearTexture ? FrontNearTexture === null || FrontNearTexture === void 0 ? void 0 : FrontNearTexture.value : FrontNearTexture, isRaw: typeof FrontNearTexture === "object" && "isRaw" in FrontNearTexture && FrontNearTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindFarTextureScale", id: typeof BehindFarTextureScale === "object" && "id" in BehindFarTextureScale ? BehindFarTextureScale === null || BehindFarTextureScale === void 0 ? void 0 : BehindFarTextureScale.id : undefined, value: typeof BehindFarTextureScale === "object" && "value" in BehindFarTextureScale ? BehindFarTextureScale === null || BehindFarTextureScale === void 0 ? void 0 : BehindFarTextureScale.value : BehindFarTextureScale, isRaw: typeof BehindFarTextureScale === "object" && "isRaw" in BehindFarTextureScale && BehindFarTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindFarTextureOffset", id: typeof BehindFarTextureOffset === "object" && "id" in BehindFarTextureOffset ? BehindFarTextureOffset === null || BehindFarTextureOffset === void 0 ? void 0 : BehindFarTextureOffset.id : undefined, value: typeof BehindFarTextureOffset === "object" && "value" in BehindFarTextureOffset ? BehindFarTextureOffset === null || BehindFarTextureOffset === void 0 ? void 0 : BehindFarTextureOffset.value : BehindFarTextureOffset, isRaw: typeof BehindFarTextureOffset === "object" && "isRaw" in BehindFarTextureOffset && BehindFarTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindNearTextureScale", id: typeof BehindNearTextureScale === "object" && "id" in BehindNearTextureScale ? BehindNearTextureScale === null || BehindNearTextureScale === void 0 ? void 0 : BehindNearTextureScale.id : undefined, value: typeof BehindNearTextureScale === "object" && "value" in BehindNearTextureScale ? BehindNearTextureScale === null || BehindNearTextureScale === void 0 ? void 0 : BehindNearTextureScale.value : BehindNearTextureScale, isRaw: typeof BehindNearTextureScale === "object" && "isRaw" in BehindNearTextureScale && BehindNearTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "BehindNearTextureOffset", id: typeof BehindNearTextureOffset === "object" && "id" in BehindNearTextureOffset ? BehindNearTextureOffset === null || BehindNearTextureOffset === void 0 ? void 0 : BehindNearTextureOffset.id : undefined, value: typeof BehindNearTextureOffset === "object" && "value" in BehindNearTextureOffset ? BehindNearTextureOffset === null || BehindNearTextureOffset === void 0 ? void 0 : BehindNearTextureOffset.value : BehindNearTextureOffset, isRaw: typeof BehindNearTextureOffset === "object" && "isRaw" in BehindNearTextureOffset && BehindNearTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontFarTextureScale", id: typeof FrontFarTextureScale === "object" && "id" in FrontFarTextureScale ? FrontFarTextureScale === null || FrontFarTextureScale === void 0 ? void 0 : FrontFarTextureScale.id : undefined, value: typeof FrontFarTextureScale === "object" && "value" in FrontFarTextureScale ? FrontFarTextureScale === null || FrontFarTextureScale === void 0 ? void 0 : FrontFarTextureScale.value : FrontFarTextureScale, isRaw: typeof FrontFarTextureScale === "object" && "isRaw" in FrontFarTextureScale && FrontFarTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontFarTextureOffset", id: typeof FrontFarTextureOffset === "object" && "id" in FrontFarTextureOffset ? FrontFarTextureOffset === null || FrontFarTextureOffset === void 0 ? void 0 : FrontFarTextureOffset.id : undefined, value: typeof FrontFarTextureOffset === "object" && "value" in FrontFarTextureOffset ? FrontFarTextureOffset === null || FrontFarTextureOffset === void 0 ? void 0 : FrontFarTextureOffset.value : FrontFarTextureOffset, isRaw: typeof FrontFarTextureOffset === "object" && "isRaw" in FrontFarTextureOffset && FrontFarTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontNearTextureScale", id: typeof FrontNearTextureScale === "object" && "id" in FrontNearTextureScale ? FrontNearTextureScale === null || FrontNearTextureScale === void 0 ? void 0 : FrontNearTextureScale.id : undefined, value: typeof FrontNearTextureScale === "object" && "value" in FrontNearTextureScale ? FrontNearTextureScale === null || FrontNearTextureScale === void 0 ? void 0 : FrontNearTextureScale.value : FrontNearTextureScale, isRaw: typeof FrontNearTextureScale === "object" && "isRaw" in FrontNearTextureScale && FrontNearTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FrontNearTextureOffset", id: typeof FrontNearTextureOffset === "object" && "id" in FrontNearTextureOffset ? FrontNearTextureOffset === null || FrontNearTextureOffset === void 0 ? void 0 : FrontNearTextureOffset.id : undefined, value: typeof FrontNearTextureOffset === "object" && "value" in FrontNearTextureOffset ? FrontNearTextureOffset === null || FrontNearTextureOffset === void 0 ? void 0 : FrontNearTextureOffset.value : FrontNearTextureOffset, isRaw: typeof FrontNearTextureOffset === "object" && "isRaw" in FrontNearTextureOffset && FrontNearTextureOffset.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[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.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.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[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.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 })] }))); } exports.OverlayFresnelMaterial = OverlayFresnelMaterial; ;