|
|
Line 1: |
Line 1: |
− | This ReflectionProbe class is a script interface for a reflection probe component. | + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sreflectionprobe |
− | | + | |
− | =Properties=
| + | |
− | | + | |
− | {{ScriptFunction|SVector|Center|[get, set]|The center of the box area in which reflections will be applied to the objects. Measured in the probe's local space.|5=probe = Space.Scene.Find("Reflection").ReflectionProbe<br>
| + | |
− | probe.Center = Space.Scene.Find(“TargetTransform”).WorldPosition<br>
| + | |
− | ''--set reflection probe center to target transform position.''
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|Size|[get, set]|The size of the box area in which reflections will be applied to the objects. Measured in the probe's local space.|5=probe = Space.Scene.Find("Reflection").ReflectionProbe<br>
| + | |
− | probe.Size = Vector.New(50,50,50)<br>
| + | |
− | ''--set cube size of reflection probe to 50.''
| + | |
− | }}
| + | |
− | | + | |
− | | + | |
− | =Members=
| + | |
− | | + | |
− | {{ScriptFunction|void|RenderProbe|();|Refreshes the probe's cubemap.|5=probe = Space.Scene.Find("Reflection").ReflectionProbe<br>
| + | |
− | probe.RenderProbe()<br>
| + | |
− | ''--Render scene to this probe's cube map.''
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 06:18, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sreflectionprobe