neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 14.1 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.PBS_TriplanarMetallic = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function PBS_TriplanarMetallic(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, TriplanarBlendPower = props.TriplanarBlendPower, ObjectSpace = props.ObjectSpace, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, Culling = props.Culling, Transparent = props.Transparent, 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_TriplanarMetallic", 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[System.Single]", name: "TriplanarBlendPower", id: typeof TriplanarBlendPower === "object" && "id" in TriplanarBlendPower ? TriplanarBlendPower === null || TriplanarBlendPower === void 0 ? void 0 : TriplanarBlendPower.id : undefined, value: typeof TriplanarBlendPower === "object" && "value" in TriplanarBlendPower ? TriplanarBlendPower === null || TriplanarBlendPower === void 0 ? void 0 : TriplanarBlendPower.value : TriplanarBlendPower, isRaw: typeof TriplanarBlendPower === "object" && "isRaw" in TriplanarBlendPower && TriplanarBlendPower.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ObjectSpace", id: typeof ObjectSpace === "object" && "id" in ObjectSpace ? ObjectSpace === null || ObjectSpace === void 0 ? void 0 : ObjectSpace.id : undefined, value: typeof ObjectSpace === "object" && "value" in ObjectSpace ? ObjectSpace === null || ObjectSpace === void 0 ? void 0 : ObjectSpace.value : ObjectSpace, isRaw: typeof ObjectSpace === "object" && "isRaw" in ObjectSpace && ObjectSpace.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[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.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_TriplanarMetallic = PBS_TriplanarMetallic;
;