light
parent
0c8a5ce775
commit
f7b00a8a64
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 SoyKhaler
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@ -0,0 +1,11 @@
|
||||
# Instant Realistic Light
|
||||
|
||||
|
||||
A very simple Godot Engine Plugin to get realistic lights on your 3D Scene
|
||||
Use free, its free and open source (no atribution needed)
|
||||
|
||||
|
||||
# Instructions
|
||||
1. Save this repo content on ``/Path/Addons/realisticlight``
|
||||
2. Enable addon on project settings in addon tab
|
||||
3. Open your scene ``.tscn`` and press "Instant Realistic Light" Button and enjoy!
|
||||
@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bs2jm62cmkbrk"]
|
||||
|
||||
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_gn88m"]
|
||||
ground_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_tyhie"]
|
||||
sky_material = SubResource("PhysicalSkyMaterial_gn88m")
|
||||
radiance_size = 2
|
||||
|
||||
[sub_resource type="Environment" id="Environment_f8w8m"]
|
||||
background_mode = 2
|
||||
background_intensity = 100000.0
|
||||
sky = SubResource("Sky_tyhie")
|
||||
tonemap_mode = 3
|
||||
tonemap_white = 8.0
|
||||
ssao_enabled = true
|
||||
ssao_detail = 2.0
|
||||
sdfgi_enabled = true
|
||||
sdfgi_bounce_feedback = 0.9
|
||||
glow_enabled = true
|
||||
glow_normalized = true
|
||||
glow_bloom = 0.2
|
||||
volumetric_fog_enabled = true
|
||||
volumetric_fog_density = 0.01
|
||||
volumetric_fog_gi_inject = 1.14
|
||||
volumetric_fog_anisotropy = 0.7
|
||||
volumetric_fog_sky_affect = 0.295
|
||||
adjustment_saturation = 1.17
|
||||
|
||||
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_qo5hu"]
|
||||
exposure_multiplier = 3.069
|
||||
auto_exposure_scale = 0.22
|
||||
auto_exposure_speed = 0.8
|
||||
dof_blur_far_distance = 1.44
|
||||
dof_blur_near_distance = 0.01
|
||||
auto_exposure_min_sensitivity = 8.01
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment"]
|
||||
environment = SubResource("Environment_f8w8m")
|
||||
camera_attributes = SubResource("CameraAttributesPractical_qo5hu")
|
||||
|
||||
[node name="Sun3" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.605197, 0.796076, 0, -0.796076, 0.605197, -4.86868, 8.33126, 2.18251)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="ReflectionProbe" type="ReflectionProbe" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 49.8991, 25.834, -30.0061)
|
||||
size = Vector3(10000, 10000, 1000)
|
||||
@ -0,0 +1,7 @@
|
||||
[plugin]
|
||||
|
||||
name="Instant Realistic Light"
|
||||
description="A very simple Godot Engine Plugin to get realistic lights on your 3D Scene"
|
||||
author="soykhaler"
|
||||
version="1.0"
|
||||
script="plugin.gd"
|
||||
@ -0,0 +1,19 @@
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
@onready var temp_scene = preload("res://addons/instant-realistic-light/light_scene.tscn")
|
||||
var button = Button.new()
|
||||
|
||||
func _enter_tree():
|
||||
button.text = "Instant Realistic Light"
|
||||
button.connect("pressed", Callable(self, "_on_button_pressed"))
|
||||
add_control_to_container(CONTAINER_SPATIAL_EDITOR_MENU, button)
|
||||
|
||||
func _exit_tree():
|
||||
remove_control_from_container(CONTAINER_SPATIAL_EDITOR_MENU, button)
|
||||
button.free()
|
||||
|
||||
func _on_button_pressed():
|
||||
var scene = temp_scene.instantiate()
|
||||
get_tree().get_edited_scene_root().add_child(scene)
|
||||
scene.set_owner(get_tree().get_edited_scene_root())
|
||||
@ -0,0 +1,15 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
|
||||
# Godot-specific ignores
|
||||
.import/
|
||||
export.cfg
|
||||
export_presets.cfg
|
||||
|
||||
# Imported translations (automatically generated from CSV files)
|
||||
*.translation
|
||||
|
||||
# Mono-specific ignores
|
||||
.mono/
|
||||
data_*/
|
||||
mono_crash.*.json
|
||||
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cunvglaug2rlt"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dkyaix1edhf8c"
|
||||
path="res://.godot/imported/splash.png-929ed8a00b89ba36c51789452f874c77.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://splash.png"
|
||||
dest_files=["res://.godot/imported/splash.png-929ed8a00b89ba36c51789452f874c77.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Loading…
Reference in New Issue