neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 13.2 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.FurMaterial = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function FurMaterial(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, Color = props.Color, SpecularColor = props.SpecularColor, Shininess = props.Shininess, Gloss = props.Gloss, RimColor = props.RimColor, RimPower = props.RimPower, FurLength = props.FurLength, FurHardness = props.FurHardness, FurThinness = props.FurThinness, FurShading = props.FurShading, FurColoring = props.FurColoring, Base = props.Base, NormalMap = props.NormalMap, Noise = props.Noise, TextureScale = props.TextureScale, TextureOffset = props.TextureOffset, AlphaCutoff = props.AlphaCutoff, ForceGlobal = props.ForceGlobal, ForceLocal = props.ForceLocal, RenderQueue = props.RenderQueue;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.FurMaterial", 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.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: "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.Sync`1[System.Single]", name: "Shininess", id: typeof Shininess === "object" && "id" in Shininess ? Shininess === null || Shininess === void 0 ? void 0 : Shininess.id : undefined, value: typeof Shininess === "object" && "value" in Shininess ? Shininess === null || Shininess === void 0 ? void 0 : Shininess.value : Shininess, isRaw: typeof Shininess === "object" && "isRaw" in Shininess && Shininess.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Gloss", id: typeof Gloss === "object" && "id" in Gloss ? Gloss === null || Gloss === void 0 ? void 0 : Gloss.id : undefined, value: typeof Gloss === "object" && "value" in Gloss ? Gloss === null || Gloss === void 0 ? void 0 : Gloss.value : Gloss, isRaw: typeof Gloss === "object" && "isRaw" in Gloss && Gloss.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "RimColor", id: typeof RimColor === "object" && "id" in RimColor ? RimColor === null || RimColor === void 0 ? void 0 : RimColor.id : undefined, value: typeof RimColor === "object" && "value" in RimColor ? RimColor === null || RimColor === void 0 ? void 0 : RimColor.value : RimColor, isRaw: typeof RimColor === "object" && "isRaw" in RimColor && RimColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RimPower", id: typeof RimPower === "object" && "id" in RimPower ? RimPower === null || RimPower === void 0 ? void 0 : RimPower.id : undefined, value: typeof RimPower === "object" && "value" in RimPower ? RimPower === null || RimPower === void 0 ? void 0 : RimPower.value : RimPower, isRaw: typeof RimPower === "object" && "isRaw" in RimPower && RimPower.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FurLength", id: typeof FurLength === "object" && "id" in FurLength ? FurLength === null || FurLength === void 0 ? void 0 : FurLength.id : undefined, value: typeof FurLength === "object" && "value" in FurLength ? FurLength === null || FurLength === void 0 ? void 0 : FurLength.value : FurLength, isRaw: typeof FurLength === "object" && "isRaw" in FurLength && FurLength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FurHardness", id: typeof FurHardness === "object" && "id" in FurHardness ? FurHardness === null || FurHardness === void 0 ? void 0 : FurHardness.id : undefined, value: typeof FurHardness === "object" && "value" in FurHardness ? FurHardness === null || FurHardness === void 0 ? void 0 : FurHardness.value : FurHardness, isRaw: typeof FurHardness === "object" && "isRaw" in FurHardness && FurHardness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FurThinness", id: typeof FurThinness === "object" && "id" in FurThinness ? FurThinness === null || FurThinness === void 0 ? void 0 : FurThinness.id : undefined, value: typeof FurThinness === "object" && "value" in FurThinness ? FurThinness === null || FurThinness === void 0 ? void 0 : FurThinness.value : FurThinness, isRaw: typeof FurThinness === "object" && "isRaw" in FurThinness && FurThinness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FurShading", id: typeof FurShading === "object" && "id" in FurShading ? FurShading === null || FurShading === void 0 ? void 0 : FurShading.id : undefined, value: typeof FurShading === "object" && "value" in FurShading ? FurShading === null || FurShading === void 0 ? void 0 : FurShading.value : FurShading, isRaw: typeof FurShading === "object" && "isRaw" in FurShading && FurShading.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FurColoring", id: typeof FurColoring === "object" && "id" in FurColoring ? FurColoring === null || FurColoring === void 0 ? void 0 : FurColoring.id : undefined, value: typeof FurColoring === "object" && "value" in FurColoring ? FurColoring === null || FurColoring === void 0 ? void 0 : FurColoring.value : FurColoring, isRaw: typeof FurColoring === "object" && "isRaw" in FurColoring && FurColoring.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "Base", id: typeof Base === "object" && "id" in Base ? Base === null || Base === void 0 ? void 0 : Base.id : undefined, value: typeof Base === "object" && "value" in Base ? Base === null || Base === void 0 ? void 0 : Base.value : Base, isRaw: typeof Base === "object" && "isRaw" in Base && Base.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.AssetRef`1[FrooxEngine.ITexture2D]", name: "Noise", id: typeof Noise === "object" && "id" in Noise ? Noise === null || Noise === void 0 ? void 0 : Noise.id : undefined, value: typeof Noise === "object" && "value" in Noise ? Noise === null || Noise === void 0 ? void 0 : Noise.value : Noise, isRaw: typeof Noise === "object" && "isRaw" in Noise && Noise.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[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.float4]", name: "ForceGlobal", id: typeof ForceGlobal === "object" && "id" in ForceGlobal ? ForceGlobal === null || ForceGlobal === void 0 ? void 0 : ForceGlobal.id : undefined, value: typeof ForceGlobal === "object" && "value" in ForceGlobal ? ForceGlobal === null || ForceGlobal === void 0 ? void 0 : ForceGlobal.value : ForceGlobal, isRaw: typeof ForceGlobal === "object" && "isRaw" in ForceGlobal && ForceGlobal.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float4]", name: "ForceLocal", id: typeof ForceLocal === "object" && "id" in ForceLocal ? ForceLocal === null || ForceLocal === void 0 ? void 0 : ForceLocal.id : undefined, value: typeof ForceLocal === "object" && "value" in ForceLocal ? ForceLocal === null || ForceLocal === void 0 ? void 0 : ForceLocal.value : ForceLocal, isRaw: typeof ForceLocal === "object" && "isRaw" in ForceLocal && ForceLocal.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.FurMaterial = FurMaterial;
;