neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 17.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.FresnelMaterial = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function FresnelMaterial(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, Exponent = props.Exponent, FarColor = props.FarColor, NearColor = props.NearColor, FarTexture = props.FarTexture, NearTexture = props.NearTexture, FarTextureScale = props.FarTextureScale, FarTextureOffset = props.FarTextureOffset, NearTextureScale = props.NearTextureScale, NearTextureOffset = props.NearTextureOffset, NormalMap = props.NormalMap, NormalScale = props.NormalScale, UseVertexColors = props.UseVertexColors, BlendMode = props.BlendMode, AlphaCutoff = props.AlphaCutoff, MaskTexture = props.MaskTexture, MaskScale = props.MaskScale, MaskOffset = props.MaskOffset, MaskMode = props.MaskMode, Sidedness = props.Sidedness, ZWrite = props.ZWrite, ZTest = props.ZTest, OffsetFactor = props.OffsetFactor, OffsetUnits = props.OffsetUnits, RenderQueue = props.RenderQueue, PolarUVmapping = props.PolarUVmapping, PolarPower = props.PolarPower;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.FresnelMaterial", 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: "FarColor", id: typeof FarColor === "object" && "id" in FarColor ? FarColor === null || FarColor === void 0 ? void 0 : FarColor.id : undefined, value: typeof FarColor === "object" && "value" in FarColor ? FarColor === null || FarColor === void 0 ? void 0 : FarColor.value : FarColor, isRaw: typeof FarColor === "object" && "isRaw" in FarColor && FarColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NearColor", id: typeof NearColor === "object" && "id" in NearColor ? NearColor === null || NearColor === void 0 ? void 0 : NearColor.id : undefined, value: typeof NearColor === "object" && "value" in NearColor ? NearColor === null || NearColor === void 0 ? void 0 : NearColor.value : NearColor, isRaw: typeof NearColor === "object" && "isRaw" in NearColor && NearColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "FarTexture", id: typeof FarTexture === "object" && "id" in FarTexture ? FarTexture === null || FarTexture === void 0 ? void 0 : FarTexture.id : undefined, value: typeof FarTexture === "object" && "value" in FarTexture ? FarTexture === null || FarTexture === void 0 ? void 0 : FarTexture.value : FarTexture, isRaw: typeof FarTexture === "object" && "isRaw" in FarTexture && FarTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "NearTexture", id: typeof NearTexture === "object" && "id" in NearTexture ? NearTexture === null || NearTexture === void 0 ? void 0 : NearTexture.id : undefined, value: typeof NearTexture === "object" && "value" in NearTexture ? NearTexture === null || NearTexture === void 0 ? void 0 : NearTexture.value : NearTexture, isRaw: typeof NearTexture === "object" && "isRaw" in NearTexture && NearTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FarTextureScale", id: typeof FarTextureScale === "object" && "id" in FarTextureScale ? FarTextureScale === null || FarTextureScale === void 0 ? void 0 : FarTextureScale.id : undefined, value: typeof FarTextureScale === "object" && "value" in FarTextureScale ? FarTextureScale === null || FarTextureScale === void 0 ? void 0 : FarTextureScale.value : FarTextureScale, isRaw: typeof FarTextureScale === "object" && "isRaw" in FarTextureScale && FarTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FarTextureOffset", id: typeof FarTextureOffset === "object" && "id" in FarTextureOffset ? FarTextureOffset === null || FarTextureOffset === void 0 ? void 0 : FarTextureOffset.id : undefined, value: typeof FarTextureOffset === "object" && "value" in FarTextureOffset ? FarTextureOffset === null || FarTextureOffset === void 0 ? void 0 : FarTextureOffset.value : FarTextureOffset, isRaw: typeof FarTextureOffset === "object" && "isRaw" in FarTextureOffset && FarTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "NearTextureScale", id: typeof NearTextureScale === "object" && "id" in NearTextureScale ? NearTextureScale === null || NearTextureScale === void 0 ? void 0 : NearTextureScale.id : undefined, value: typeof NearTextureScale === "object" && "value" in NearTextureScale ? NearTextureScale === null || NearTextureScale === void 0 ? void 0 : NearTextureScale.value : NearTextureScale, isRaw: typeof NearTextureScale === "object" && "isRaw" in NearTextureScale && NearTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "NearTextureOffset", id: typeof NearTextureOffset === "object" && "id" in NearTextureOffset ? NearTextureOffset === null || NearTextureOffset === void 0 ? void 0 : NearTextureOffset.id : undefined, value: typeof NearTextureOffset === "object" && "value" in NearTextureOffset ? NearTextureOffset === null || NearTextureOffset === void 0 ? void 0 : NearTextureOffset.value : NearTextureOffset, isRaw: typeof NearTextureOffset === "object" && "isRaw" in NearTextureOffset && NearTextureOffset.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.Sync`1[System.Boolean]", name: "UseVertexColors", id: typeof UseVertexColors === "object" && "id" in UseVertexColors ? UseVertexColors === null || UseVertexColors === void 0 ? void 0 : UseVertexColors.id : undefined, value: typeof UseVertexColors === "object" && "value" in UseVertexColors ? UseVertexColors === null || UseVertexColors === void 0 ? void 0 : UseVertexColors.value : UseVertexColors, isRaw: typeof UseVertexColors === "object" && "isRaw" in UseVertexColors && UseVertexColors.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[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.AssetRef`1[FrooxEngine.ITexture2D]", name: "MaskTexture", id: typeof MaskTexture === "object" && "id" in MaskTexture ? MaskTexture === null || MaskTexture === void 0 ? void 0 : MaskTexture.id : undefined, value: typeof MaskTexture === "object" && "value" in MaskTexture ? MaskTexture === null || MaskTexture === void 0 ? void 0 : MaskTexture.value : MaskTexture, isRaw: typeof MaskTexture === "object" && "isRaw" in MaskTexture && MaskTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "MaskScale", id: typeof MaskScale === "object" && "id" in MaskScale ? MaskScale === null || MaskScale === void 0 ? void 0 : MaskScale.id : undefined, value: typeof MaskScale === "object" && "value" in MaskScale ? MaskScale === null || MaskScale === void 0 ? void 0 : MaskScale.value : MaskScale, isRaw: typeof MaskScale === "object" && "isRaw" in MaskScale && MaskScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "MaskOffset", id: typeof MaskOffset === "object" && "id" in MaskOffset ? MaskOffset === null || MaskOffset === void 0 ? void 0 : MaskOffset.id : undefined, value: typeof MaskOffset === "object" && "value" in MaskOffset ? MaskOffset === null || MaskOffset === void 0 ? void 0 : MaskOffset.value : MaskOffset, isRaw: typeof MaskOffset === "object" && "isRaw" in MaskOffset && MaskOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.MaskTextureMode]", name: "MaskMode", id: typeof MaskMode === "object" && "id" in MaskMode ? MaskMode === null || MaskMode === void 0 ? void 0 : MaskMode.id : undefined, value: typeof MaskMode === "object" && "value" in MaskMode ? MaskMode === null || MaskMode === void 0 ? void 0 : MaskMode.value : MaskMode, isRaw: typeof MaskMode === "object" && "isRaw" in MaskMode && MaskMode.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[FrooxEngine.ZTest]", name: "ZTest", id: typeof ZTest === "object" && "id" in ZTest ? ZTest === null || ZTest === void 0 ? void 0 : ZTest.id : undefined, value: typeof ZTest === "object" && "value" in ZTest ? ZTest === null || ZTest === void 0 ? void 0 : ZTest.value : ZTest, isRaw: typeof ZTest === "object" && "isRaw" in ZTest && ZTest.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.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.FresnelMaterial = FresnelMaterial;
;