mirror of
https://github.com/Cuteminded/jellyframe.git
synced 2026-10-28 04:07:21 +01:00
11 lines
305 B
GDScript
11 lines
305 B
GDScript
class_name VrOverlayMaterial
|
|
extends RefCounted
|
|
|
|
const DEPTH_SCALE := 0.01
|
|
|
|
static func apply_depth(material: BaseMaterial3D) -> void:
|
|
# Menus and controllers share a depth range in front of the room.
|
|
material.use_z_clip_scale = true
|
|
material.z_clip_scale = DEPTH_SCALE
|
|
material.no_depth_test = false
|