Use physical light units
This commit is contained in:
parent
6ddf7001c1
commit
c4d0183105
24
demo.tscn
24
demo.tscn
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://curuvawho72ye"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://curuvawho72ye"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fvxyx22tlp1r" path="res://Resources/Concrete/concrete_wall_007_diff_4k.jpg" id="1_kem5a"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccij0mqknto8m" path="res://Resources/Concrete/concrete_wall_007_ao_4k.jpg" id="2_gxmxl"]
|
||||
@ -7,6 +7,7 @@
|
||||
[ext_resource type="ArrayMesh" uid="uid://cals0eudw6xpn" path="res://Resources/Scene/scene.res" id="5_kem5a"]
|
||||
[ext_resource type="Environment" uid="uid://hnnkn5u3d5tq" path="res://environment.tres" id="6_gxmxl"]
|
||||
[ext_resource type="PackedScene" uid="uid://812wr1ecdyk7" path="res://Resources/Tree/island_tree_02_2k.gltf" id="6_kem5a"]
|
||||
[ext_resource type="Script" uid="uid://chsrhdswfnbub" path="res://screenshot_viewport.gd" id="8_n4w22"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_svejp"]
|
||||
albedo_texture = ExtResource("1_kem5a")
|
||||
@ -19,6 +20,11 @@ ao_texture = ExtResource("2_gxmxl")
|
||||
uv1_scale = Vector3(0.2, 0.2, 0.2)
|
||||
uv1_triplanar = true
|
||||
|
||||
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_n4w22"]
|
||||
exposure_sensitivity = 40.0
|
||||
auto_exposure_enabled = true
|
||||
auto_exposure_speed = 64.0
|
||||
|
||||
[node name="Demo" type="Node3D"]
|
||||
|
||||
[node name="Scene" type="MeshInstance3D" parent="."]
|
||||
@ -28,11 +34,27 @@ mesh = ExtResource("5_kem5a")
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = ExtResource("6_gxmxl")
|
||||
camera_attributes = SubResource("CameraAttributesPhysical_n4w22")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
|
||||
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0)
|
||||
light_temperature = 6000.0
|
||||
light_energy = 3.0
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="island_tree_02_2k" parent="." instance=ExtResource("6_kem5a")]
|
||||
transform = Transform3D(-0.47199, 0, -0.58286, 0, 0.75, 0, 0.58286, 0, -0.47199, 0, 0, 0)
|
||||
|
||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
|
||||
handle_input_locally = false
|
||||
size = Vector2i(1800, 1200)
|
||||
render_target_update_mode = 4
|
||||
script = ExtResource("8_n4w22")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="SubViewportContainer/SubViewport"]
|
||||
transform = Transform3D(-1, 8.3823e-05, -0.000846625, 0, 0.995134, 0.0985266, 0.000850765, 0.0985266, -0.995134, 0.22, 1.333, -5.682)
|
||||
fov = 45.0
|
||||
|
@ -14,3 +14,7 @@ config/name="Realistic Environment Demo"
|
||||
run/main_scene="uid://curuvawho72ye"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[rendering]
|
||||
|
||||
lights_and_shadows/use_physical_light_units=true
|
||||
|
Loading…
x
Reference in New Issue
Block a user