UNPKG

neos-script

Version:

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

23 lines (22 loc) 11.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.DepthProjectionMaterial = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../../core"); function DepthProjectionMaterial(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, _shader = props._shader, Color = props.Color, Depth = props.Depth, DepthEncoding = props.DepthEncoding, ColorTextureOffset = props.ColorTextureOffset, ColorTextureScale = props.ColorTextureScale, DepthTextureOffset = props.DepthTextureOffset, DepthTextureScale = props.DepthTextureScale, DepthFrom = props.DepthFrom, DepthTo = props.DepthTo, FieldOfView = props.FieldOfView, NearClip = props.NearClip, FarClip = props.FarClip, DiscardThreshold = props.DiscardThreshold, DiscardOffset = props.DiscardOffset, BlendMode = props.BlendMode, ZWrite = props.ZWrite; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.DepthProjectionMaterial", 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.AssetRef`1[FrooxEngine.ITexture2D]", 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.AssetRef`1[FrooxEngine.ITexture2D]", name: "Depth", id: typeof Depth === "object" && "id" in Depth ? Depth === null || Depth === void 0 ? void 0 : Depth.id : undefined, value: typeof Depth === "object" && "value" in Depth ? Depth === null || Depth === void 0 ? void 0 : Depth.value : Depth, isRaw: typeof Depth === "object" && "isRaw" in Depth && Depth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.DepthEncoding]", name: "DepthEncoding", id: typeof DepthEncoding === "object" && "id" in DepthEncoding ? DepthEncoding === null || DepthEncoding === void 0 ? void 0 : DepthEncoding.id : undefined, value: typeof DepthEncoding === "object" && "value" in DepthEncoding ? DepthEncoding === null || DepthEncoding === void 0 ? void 0 : DepthEncoding.value : DepthEncoding, isRaw: typeof DepthEncoding === "object" && "isRaw" in DepthEncoding && DepthEncoding.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "ColorTextureOffset", id: typeof ColorTextureOffset === "object" && "id" in ColorTextureOffset ? ColorTextureOffset === null || ColorTextureOffset === void 0 ? void 0 : ColorTextureOffset.id : undefined, value: typeof ColorTextureOffset === "object" && "value" in ColorTextureOffset ? ColorTextureOffset === null || ColorTextureOffset === void 0 ? void 0 : ColorTextureOffset.value : ColorTextureOffset, isRaw: typeof ColorTextureOffset === "object" && "isRaw" in ColorTextureOffset && ColorTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "ColorTextureScale", id: typeof ColorTextureScale === "object" && "id" in ColorTextureScale ? ColorTextureScale === null || ColorTextureScale === void 0 ? void 0 : ColorTextureScale.id : undefined, value: typeof ColorTextureScale === "object" && "value" in ColorTextureScale ? ColorTextureScale === null || ColorTextureScale === void 0 ? void 0 : ColorTextureScale.value : ColorTextureScale, isRaw: typeof ColorTextureScale === "object" && "isRaw" in ColorTextureScale && ColorTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "DepthTextureOffset", id: typeof DepthTextureOffset === "object" && "id" in DepthTextureOffset ? DepthTextureOffset === null || DepthTextureOffset === void 0 ? void 0 : DepthTextureOffset.id : undefined, value: typeof DepthTextureOffset === "object" && "value" in DepthTextureOffset ? DepthTextureOffset === null || DepthTextureOffset === void 0 ? void 0 : DepthTextureOffset.value : DepthTextureOffset, isRaw: typeof DepthTextureOffset === "object" && "isRaw" in DepthTextureOffset && DepthTextureOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "DepthTextureScale", id: typeof DepthTextureScale === "object" && "id" in DepthTextureScale ? DepthTextureScale === null || DepthTextureScale === void 0 ? void 0 : DepthTextureScale.id : undefined, value: typeof DepthTextureScale === "object" && "value" in DepthTextureScale ? DepthTextureScale === null || DepthTextureScale === void 0 ? void 0 : DepthTextureScale.value : DepthTextureScale, isRaw: typeof DepthTextureScale === "object" && "isRaw" in DepthTextureScale && DepthTextureScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DepthFrom", id: typeof DepthFrom === "object" && "id" in DepthFrom ? DepthFrom === null || DepthFrom === void 0 ? void 0 : DepthFrom.id : undefined, value: typeof DepthFrom === "object" && "value" in DepthFrom ? DepthFrom === null || DepthFrom === void 0 ? void 0 : DepthFrom.value : DepthFrom, isRaw: typeof DepthFrom === "object" && "isRaw" in DepthFrom && DepthFrom.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DepthTo", id: typeof DepthTo === "object" && "id" in DepthTo ? DepthTo === null || DepthTo === void 0 ? void 0 : DepthTo.id : undefined, value: typeof DepthTo === "object" && "value" in DepthTo ? DepthTo === null || DepthTo === void 0 ? void 0 : DepthTo.value : DepthTo, isRaw: typeof DepthTo === "object" && "isRaw" in DepthTo && DepthTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "FieldOfView", id: typeof FieldOfView === "object" && "id" in FieldOfView ? FieldOfView === null || FieldOfView === void 0 ? void 0 : FieldOfView.id : undefined, value: typeof FieldOfView === "object" && "value" in FieldOfView ? FieldOfView === null || FieldOfView === void 0 ? void 0 : FieldOfView.value : FieldOfView, isRaw: typeof FieldOfView === "object" && "isRaw" in FieldOfView && FieldOfView.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "NearClip", id: typeof NearClip === "object" && "id" in NearClip ? NearClip === null || NearClip === void 0 ? void 0 : NearClip.id : undefined, value: typeof NearClip === "object" && "value" in NearClip ? NearClip === null || NearClip === void 0 ? void 0 : NearClip.value : NearClip, isRaw: typeof NearClip === "object" && "isRaw" in NearClip && NearClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FarClip", id: typeof FarClip === "object" && "id" in FarClip ? FarClip === null || FarClip === void 0 ? void 0 : FarClip.id : undefined, value: typeof FarClip === "object" && "value" in FarClip ? FarClip === null || FarClip === void 0 ? void 0 : FarClip.value : FarClip, isRaw: typeof FarClip === "object" && "isRaw" in FarClip && FarClip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DiscardThreshold", id: typeof DiscardThreshold === "object" && "id" in DiscardThreshold ? DiscardThreshold === null || DiscardThreshold === void 0 ? void 0 : DiscardThreshold.id : undefined, value: typeof DiscardThreshold === "object" && "value" in DiscardThreshold ? DiscardThreshold === null || DiscardThreshold === void 0 ? void 0 : DiscardThreshold.value : DiscardThreshold, isRaw: typeof DiscardThreshold === "object" && "isRaw" in DiscardThreshold && DiscardThreshold.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DiscardOffset", id: typeof DiscardOffset === "object" && "id" in DiscardOffset ? DiscardOffset === null || DiscardOffset === void 0 ? void 0 : DiscardOffset.id : undefined, value: typeof DiscardOffset === "object" && "value" in DiscardOffset ? DiscardOffset === null || DiscardOffset === void 0 ? void 0 : DiscardOffset.value : DiscardOffset, isRaw: typeof DiscardOffset === "object" && "isRaw" in DiscardOffset && DiscardOffset.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.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 })] }))); } exports.DepthProjectionMaterial = DepthProjectionMaterial; ;