neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 16.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.FresnelLerpMaterial = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function FresnelLerpMaterial(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, Lerp = props.Lerp, LerpTexture = props.LerpTexture, LerpTextureScale = props.LerpTextureScale, LerpTextureOffset = props.LerpTextureOffset, LerpTexturePolarUV = props.LerpTexturePolarUV, LerpTexturePolarPower = props.LerpTexturePolarPower, Exponent0 = props.Exponent0, Exponent1 = props.Exponent1, FarColor0 = props.FarColor0, NearColor0 = props.NearColor0, FarColor1 = props.FarColor1, NearColor1 = props.NearColor1, FarTexture0 = props.FarTexture0, NearTexture0 = props.NearTexture0, FarTexture1 = props.FarTexture1, NearTexture1 = props.NearTexture1, NormalMap0 = props.NormalMap0, NormalMap1 = props.NormalMap1, BlendMode = props.BlendMode, Sidedness = props.Sidedness, ZWrite = props.ZWrite, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.FresnelLerpMaterial", 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: "Lerp", id: typeof Lerp === "object" && "id" in Lerp ? Lerp === null || Lerp === void 0 ? void 0 : Lerp.id : undefined, value: typeof Lerp === "object" && "value" in Lerp ? Lerp === null || Lerp === void 0 ? void 0 : Lerp.value : Lerp, isRaw: typeof Lerp === "object" && "isRaw" in Lerp && Lerp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "LerpTexture", id: typeof LerpTexture === "object" && "id" in LerpTexture ? LerpTexture === null || LerpTexture === void 0 ? void 0 : LerpTexture.id : undefined, value: typeof LerpTexture === "object" && "value" in LerpTexture ? LerpTexture === null || LerpTexture === void 0 ? void 0 : LerpTexture.value : LerpTexture, isRaw: typeof LerpTexture === "object" && "isRaw" in LerpTexture && LerpTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "LerpTextureScale", id: typeof LerpTextureScale === "object" && "id" in LerpTextureScale ? LerpTextureScale === null || LerpTextureScale === void 0 ? void 0 : LerpTextureScale.id : undefined, value: typeof LerpTextureScale === "object" && "value" in LerpTextureScale ? LerpTextureScale === null || LerpTextureScale === void 0 ? void 0 : LerpTextureScale.value : LerpTextureScale, isRaw: typeof LerpTextureScale === "object" && "isRaw" in LerpTextureScale && LerpTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "LerpTextureOffset", id: typeof LerpTextureOffset === "object" && "id" in LerpTextureOffset ? LerpTextureOffset === null || LerpTextureOffset === void 0 ? void 0 : LerpTextureOffset.id : undefined, value: typeof LerpTextureOffset === "object" && "value" in LerpTextureOffset ? LerpTextureOffset === null || LerpTextureOffset === void 0 ? void 0 : LerpTextureOffset.value : LerpTextureOffset, isRaw: typeof LerpTextureOffset === "object" && "isRaw" in LerpTextureOffset && LerpTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "LerpTexturePolarUV", id: typeof LerpTexturePolarUV === "object" && "id" in LerpTexturePolarUV ? LerpTexturePolarUV === null || LerpTexturePolarUV === void 0 ? void 0 : LerpTexturePolarUV.id : undefined, value: typeof LerpTexturePolarUV === "object" && "value" in LerpTexturePolarUV ? LerpTexturePolarUV === null || LerpTexturePolarUV === void 0 ? void 0 : LerpTexturePolarUV.value : LerpTexturePolarUV, isRaw: typeof LerpTexturePolarUV === "object" && "isRaw" in LerpTexturePolarUV && LerpTexturePolarUV.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "LerpTexturePolarPower", id: typeof LerpTexturePolarPower === "object" && "id" in LerpTexturePolarPower ? LerpTexturePolarPower === null || LerpTexturePolarPower === void 0 ? void 0 : LerpTexturePolarPower.id : undefined, value: typeof LerpTexturePolarPower === "object" && "value" in LerpTexturePolarPower ? LerpTexturePolarPower === null || LerpTexturePolarPower === void 0 ? void 0 : LerpTexturePolarPower.value : LerpTexturePolarPower, isRaw: typeof LerpTexturePolarPower === "object" && "isRaw" in LerpTexturePolarPower && LerpTexturePolarPower.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Exponent0", id: typeof Exponent0 === "object" && "id" in Exponent0 ? Exponent0 === null || Exponent0 === void 0 ? void 0 : Exponent0.id : undefined, value: typeof Exponent0 === "object" && "value" in Exponent0 ? Exponent0 === null || Exponent0 === void 0 ? void 0 : Exponent0.value : Exponent0, isRaw: typeof Exponent0 === "object" && "isRaw" in Exponent0 && Exponent0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Exponent1", id: typeof Exponent1 === "object" && "id" in Exponent1 ? Exponent1 === null || Exponent1 === void 0 ? void 0 : Exponent1.id : undefined, value: typeof Exponent1 === "object" && "value" in Exponent1 ? Exponent1 === null || Exponent1 === void 0 ? void 0 : Exponent1.value : Exponent1, isRaw: typeof Exponent1 === "object" && "isRaw" in Exponent1 && Exponent1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "FarColor0", id: typeof FarColor0 === "object" && "id" in FarColor0 ? FarColor0 === null || FarColor0 === void 0 ? void 0 : FarColor0.id : undefined, value: typeof FarColor0 === "object" && "value" in FarColor0 ? FarColor0 === null || FarColor0 === void 0 ? void 0 : FarColor0.value : FarColor0, isRaw: typeof FarColor0 === "object" && "isRaw" in FarColor0 && FarColor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NearColor0", id: typeof NearColor0 === "object" && "id" in NearColor0 ? NearColor0 === null || NearColor0 === void 0 ? void 0 : NearColor0.id : undefined, value: typeof NearColor0 === "object" && "value" in NearColor0 ? NearColor0 === null || NearColor0 === void 0 ? void 0 : NearColor0.value : NearColor0, isRaw: typeof NearColor0 === "object" && "isRaw" in NearColor0 && NearColor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "FarColor1", id: typeof FarColor1 === "object" && "id" in FarColor1 ? FarColor1 === null || FarColor1 === void 0 ? void 0 : FarColor1.id : undefined, value: typeof FarColor1 === "object" && "value" in FarColor1 ? FarColor1 === null || FarColor1 === void 0 ? void 0 : FarColor1.value : FarColor1, isRaw: typeof FarColor1 === "object" && "isRaw" in FarColor1 && FarColor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NearColor1", id: typeof NearColor1 === "object" && "id" in NearColor1 ? NearColor1 === null || NearColor1 === void 0 ? void 0 : NearColor1.id : undefined, value: typeof NearColor1 === "object" && "value" in NearColor1 ? NearColor1 === null || NearColor1 === void 0 ? void 0 : NearColor1.value : NearColor1, isRaw: typeof NearColor1 === "object" && "isRaw" in NearColor1 && NearColor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FarTexture0", id: typeof FarTexture0 === "object" && "id" in FarTexture0 ? FarTexture0 === null || FarTexture0 === void 0 ? void 0 : FarTexture0.id : undefined, value: typeof FarTexture0 === "object" && "value" in FarTexture0 ? FarTexture0 === null || FarTexture0 === void 0 ? void 0 : FarTexture0.value : FarTexture0, isRaw: typeof FarTexture0 === "object" && "isRaw" in FarTexture0 && FarTexture0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NearTexture0", id: typeof NearTexture0 === "object" && "id" in NearTexture0 ? NearTexture0 === null || NearTexture0 === void 0 ? void 0 : NearTexture0.id : undefined, value: typeof NearTexture0 === "object" && "value" in NearTexture0 ? NearTexture0 === null || NearTexture0 === void 0 ? void 0 : NearTexture0.value : NearTexture0, isRaw: typeof NearTexture0 === "object" && "isRaw" in NearTexture0 && NearTexture0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FarTexture1", id: typeof FarTexture1 === "object" && "id" in FarTexture1 ? FarTexture1 === null || FarTexture1 === void 0 ? void 0 : FarTexture1.id : undefined, value: typeof FarTexture1 === "object" && "value" in FarTexture1 ? FarTexture1 === null || FarTexture1 === void 0 ? void 0 : FarTexture1.value : FarTexture1, isRaw: typeof FarTexture1 === "object" && "isRaw" in FarTexture1 && FarTexture1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NearTexture1", id: typeof NearTexture1 === "object" && "id" in NearTexture1 ? NearTexture1 === null || NearTexture1 === void 0 ? void 0 : NearTexture1.id : undefined, value: typeof NearTexture1 === "object" && "value" in NearTexture1 ? NearTexture1 === null || NearTexture1 === void 0 ? void 0 : NearTexture1.value : NearTexture1, isRaw: typeof NearTexture1 === "object" && "isRaw" in NearTexture1 && NearTexture1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NormalMap0", id: typeof NormalMap0 === "object" && "id" in NormalMap0 ? NormalMap0 === null || NormalMap0 === void 0 ? void 0 : NormalMap0.id : undefined, value: typeof NormalMap0 === "object" && "value" in NormalMap0 ? NormalMap0 === null || NormalMap0 === void 0 ? void 0 : NormalMap0.value : NormalMap0, isRaw: typeof NormalMap0 === "object" && "isRaw" in NormalMap0 && NormalMap0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NormalMap1", id: typeof NormalMap1 === "object" && "id" in NormalMap1 ? NormalMap1 === null || NormalMap1 === void 0 ? void 0 : NormalMap1.id : undefined, value: typeof NormalMap1 === "object" && "value" in NormalMap1 ? NormalMap1 === null || NormalMap1 === void 0 ? void 0 : NormalMap1.value : NormalMap1, isRaw: typeof NormalMap1 === "object" && "isRaw" in NormalMap1 && NormalMap1.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.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.FresnelLerpMaterial = FresnelLerpMaterial;
;