UNPKG

neos-script

Version:

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

23 lines (22 loc) 20.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_DistanceLerpMetallic = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function PBS_DistanceLerpMetallic(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, TextureScale = props.TextureScale, TextureOffset = props.TextureOffset, AlbedoColor = props.AlbedoColor, AlbedoTexture = props.AlbedoTexture, EmissiveColor = props.EmissiveColor, EmissiveMap = props.EmissiveMap, NormalMap = props.NormalMap, NormalScale = props.NormalScale, OcclusionMap = props.OcclusionMap, GridSize = props.GridSize, GridOffset = props.GridOffset, DisplaceFrom = props.DisplaceFrom, DisplaceTo = props.DisplaceTo, DisplaceMagnitudeFrom = props.DisplaceMagnitudeFrom, DisplaceMagnitudeTo = props.DisplaceMagnitudeTo, EmissionFrom = props.EmissionFrom, EmissionTo = props.EmissionTo, EmissionColorFrom = props.EmissionColorFrom, EmissionColorTo = props.EmissionColorTo, OverrideDisplacementDirection = props.OverrideDisplacementDirection, LocalSpace = props.LocalSpace, Points = props.Points, Culling = props.Culling, Transparent = props.Transparent, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue, Metallic = props.Metallic, Smoothness = props.Smoothness, MetallicMap = props.MetallicMap, _regular = props._regular, _transparent = props._transparent; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PBS_DistanceLerpMetallic", 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.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.color]", name: "AlbedoColor", id: typeof AlbedoColor === "object" && "id" in AlbedoColor ? AlbedoColor === null || AlbedoColor === void 0 ? void 0 : AlbedoColor.id : undefined, value: typeof AlbedoColor === "object" && "value" in AlbedoColor ? AlbedoColor === null || AlbedoColor === void 0 ? void 0 : AlbedoColor.value : AlbedoColor, isRaw: typeof AlbedoColor === "object" && "isRaw" in AlbedoColor && AlbedoColor.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: "EmissiveColor", id: typeof EmissiveColor === "object" && "id" in EmissiveColor ? EmissiveColor === null || EmissiveColor === void 0 ? void 0 : EmissiveColor.id : undefined, value: typeof EmissiveColor === "object" && "value" in EmissiveColor ? EmissiveColor === null || EmissiveColor === void 0 ? void 0 : EmissiveColor.value : EmissiveColor, isRaw: typeof EmissiveColor === "object" && "isRaw" in EmissiveColor && EmissiveColor.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[BaseX.float3]", name: "GridSize", id: typeof GridSize === "object" && "id" in GridSize ? GridSize === null || GridSize === void 0 ? void 0 : GridSize.id : undefined, value: typeof GridSize === "object" && "value" in GridSize ? GridSize === null || GridSize === void 0 ? void 0 : GridSize.value : GridSize, isRaw: typeof GridSize === "object" && "isRaw" in GridSize && GridSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "GridOffset", id: typeof GridOffset === "object" && "id" in GridOffset ? GridOffset === null || GridOffset === void 0 ? void 0 : GridOffset.id : undefined, value: typeof GridOffset === "object" && "value" in GridOffset ? GridOffset === null || GridOffset === void 0 ? void 0 : GridOffset.value : GridOffset, isRaw: typeof GridOffset === "object" && "isRaw" in GridOffset && GridOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DisplaceFrom", id: typeof DisplaceFrom === "object" && "id" in DisplaceFrom ? DisplaceFrom === null || DisplaceFrom === void 0 ? void 0 : DisplaceFrom.id : undefined, value: typeof DisplaceFrom === "object" && "value" in DisplaceFrom ? DisplaceFrom === null || DisplaceFrom === void 0 ? void 0 : DisplaceFrom.value : DisplaceFrom, isRaw: typeof DisplaceFrom === "object" && "isRaw" in DisplaceFrom && DisplaceFrom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DisplaceTo", id: typeof DisplaceTo === "object" && "id" in DisplaceTo ? DisplaceTo === null || DisplaceTo === void 0 ? void 0 : DisplaceTo.id : undefined, value: typeof DisplaceTo === "object" && "value" in DisplaceTo ? DisplaceTo === null || DisplaceTo === void 0 ? void 0 : DisplaceTo.value : DisplaceTo, isRaw: typeof DisplaceTo === "object" && "isRaw" in DisplaceTo && DisplaceTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DisplaceMagnitudeFrom", id: typeof DisplaceMagnitudeFrom === "object" && "id" in DisplaceMagnitudeFrom ? DisplaceMagnitudeFrom === null || DisplaceMagnitudeFrom === void 0 ? void 0 : DisplaceMagnitudeFrom.id : undefined, value: typeof DisplaceMagnitudeFrom === "object" && "value" in DisplaceMagnitudeFrom ? DisplaceMagnitudeFrom === null || DisplaceMagnitudeFrom === void 0 ? void 0 : DisplaceMagnitudeFrom.value : DisplaceMagnitudeFrom, isRaw: typeof DisplaceMagnitudeFrom === "object" && "isRaw" in DisplaceMagnitudeFrom && DisplaceMagnitudeFrom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DisplaceMagnitudeTo", id: typeof DisplaceMagnitudeTo === "object" && "id" in DisplaceMagnitudeTo ? DisplaceMagnitudeTo === null || DisplaceMagnitudeTo === void 0 ? void 0 : DisplaceMagnitudeTo.id : undefined, value: typeof DisplaceMagnitudeTo === "object" && "value" in DisplaceMagnitudeTo ? DisplaceMagnitudeTo === null || DisplaceMagnitudeTo === void 0 ? void 0 : DisplaceMagnitudeTo.value : DisplaceMagnitudeTo, isRaw: typeof DisplaceMagnitudeTo === "object" && "isRaw" in DisplaceMagnitudeTo && DisplaceMagnitudeTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "EmissionFrom", id: typeof EmissionFrom === "object" && "id" in EmissionFrom ? EmissionFrom === null || EmissionFrom === void 0 ? void 0 : EmissionFrom.id : undefined, value: typeof EmissionFrom === "object" && "value" in EmissionFrom ? EmissionFrom === null || EmissionFrom === void 0 ? void 0 : EmissionFrom.value : EmissionFrom, isRaw: typeof EmissionFrom === "object" && "isRaw" in EmissionFrom && EmissionFrom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "EmissionTo", id: typeof EmissionTo === "object" && "id" in EmissionTo ? EmissionTo === null || EmissionTo === void 0 ? void 0 : EmissionTo.id : undefined, value: typeof EmissionTo === "object" && "value" in EmissionTo ? EmissionTo === null || EmissionTo === void 0 ? void 0 : EmissionTo.value : EmissionTo, isRaw: typeof EmissionTo === "object" && "isRaw" in EmissionTo && EmissionTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissionColorFrom", id: typeof EmissionColorFrom === "object" && "id" in EmissionColorFrom ? EmissionColorFrom === null || EmissionColorFrom === void 0 ? void 0 : EmissionColorFrom.id : undefined, value: typeof EmissionColorFrom === "object" && "value" in EmissionColorFrom ? EmissionColorFrom === null || EmissionColorFrom === void 0 ? void 0 : EmissionColorFrom.value : EmissionColorFrom, isRaw: typeof EmissionColorFrom === "object" && "isRaw" in EmissionColorFrom && EmissionColorFrom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "EmissionColorTo", id: typeof EmissionColorTo === "object" && "id" in EmissionColorTo ? EmissionColorTo === null || EmissionColorTo === void 0 ? void 0 : EmissionColorTo.id : undefined, value: typeof EmissionColorTo === "object" && "value" in EmissionColorTo ? EmissionColorTo === null || EmissionColorTo === void 0 ? void 0 : EmissionColorTo.value : EmissionColorTo, isRaw: typeof EmissionColorTo === "object" && "isRaw" in EmissionColorTo && EmissionColorTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.float3]]", name: "OverrideDisplacementDirection", id: typeof OverrideDisplacementDirection === "object" && "id" in OverrideDisplacementDirection ? OverrideDisplacementDirection === null || OverrideDisplacementDirection === void 0 ? void 0 : OverrideDisplacementDirection.id : undefined, value: typeof OverrideDisplacementDirection === "object" && "value" in OverrideDisplacementDirection ? OverrideDisplacementDirection === null || OverrideDisplacementDirection === void 0 ? void 0 : OverrideDisplacementDirection.value : OverrideDisplacementDirection, isRaw: typeof OverrideDisplacementDirection === "object" && "isRaw" in OverrideDisplacementDirection && OverrideDisplacementDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "LocalSpace", id: typeof LocalSpace === "object" && "id" in LocalSpace ? LocalSpace === null || LocalSpace === void 0 ? void 0 : LocalSpace.id : undefined, value: typeof LocalSpace === "object" && "value" in LocalSpace ? LocalSpace === null || LocalSpace === void 0 ? void 0 : LocalSpace.value : LocalSpace, isRaw: typeof LocalSpace === "object" && "isRaw" in LocalSpace && LocalSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.PBS_DistanceLerpMaterial+Point]", name: "Points", id: typeof Points === "object" && "id" in Points ? Points === null || Points === void 0 ? void 0 : Points.id : undefined, value: typeof Points === "object" && "value" in Points ? Points === null || Points === void 0 ? void 0 : Points.value : Points, isRaw: typeof Points === "object" && "isRaw" in Points && Points.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.Culling]", name: "Culling", id: typeof Culling === "object" && "id" in Culling ? Culling === null || Culling === void 0 ? void 0 : Culling.id : undefined, value: typeof Culling === "object" && "value" in Culling ? Culling === null || Culling === void 0 ? void 0 : Culling.value : Culling, isRaw: typeof Culling === "object" && "isRaw" in Culling && Culling.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.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[System.Single]", name: "Metallic", id: typeof Metallic === "object" && "id" in Metallic ? Metallic === null || Metallic === void 0 ? void 0 : Metallic.id : undefined, value: typeof Metallic === "object" && "value" in Metallic ? Metallic === null || Metallic === void 0 ? void 0 : Metallic.value : Metallic, isRaw: typeof Metallic === "object" && "isRaw" in Metallic && Metallic.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Smoothness", id: typeof Smoothness === "object" && "id" in Smoothness ? Smoothness === null || Smoothness === void 0 ? void 0 : Smoothness.id : undefined, value: typeof Smoothness === "object" && "value" in Smoothness ? Smoothness === null || Smoothness === void 0 ? void 0 : Smoothness.value : Smoothness, isRaw: typeof Smoothness === "object" && "isRaw" in Smoothness && Smoothness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "MetallicMap", id: typeof MetallicMap === "object" && "id" in MetallicMap ? MetallicMap === null || MetallicMap === void 0 ? void 0 : MetallicMap.id : undefined, value: typeof MetallicMap === "object" && "value" in MetallicMap ? MetallicMap === null || MetallicMap === void 0 ? void 0 : MetallicMap.value : MetallicMap, isRaw: typeof MetallicMap === "object" && "isRaw" in MetallicMap && MetallicMap.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 })] }))); } exports.PBS_DistanceLerpMetallic = PBS_DistanceLerpMetallic; ;