-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a 3D tonemapping and color correction demo #857
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very nice demo. Only needs two changes for latest Godot.
3d/tonemap_color_correction/neutral_luts/3d/create_neutral_3d_luts.gd
Outdated
Show resolved
Hide resolved
be912cf
to
0537563
Compare
22c8b46
to
a0d6a2a
Compare
a0d6a2a
to
9f4307c
Compare
I've updated the PR to add AgX support following the merge of godotengine/godot#87260. |
## *visibly* appear rendering, even though the LUT is still sampled. | ||
## Lower resolution neutral LUTs such as 17×17×17 and 33×33×33 will still somewhat impact rendering | ||
## due to the limitations of bilinear filtering. | ||
func create_neutral_lut(p_name: String, p_size: int, p_vertical: bool): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func create_neutral_lut(p_name: String, p_size: int, p_vertical: bool): | |
func create_neutral_lut(name: String, size: int, vertical: bool): |
# Hide whitepoint if not relevant (Linear tonemapping does not use a whitepoint). | ||
%Whitepoint.visible = world_environment.environment.tonemap_mode != Environment.TONE_MAPPER_LINEAR and world_environment.environment.tonemap_mode != Environment.TONE_MAPPER_AGX | ||
|
||
func _on_exposure_value_changed(value: float) -> void: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func _on_exposure_value_changed(value: float) -> void: | |
func _on_exposure_value_changed(value: float) -> void: |
I think you accidentally reverted Calinou#4 ? |
This showcases various tonemapping operators and their interaction with several color correction textures (1D and 3D). A script generating neutral 3D LUT textures is also included. Co-authored-by: Allen Pestaluky <[email protected]>
9f4307c
to
533cce2
Compare
Fixed. |
This showcases various tonemapping operators and their interaction with several color correction textures (1D and 3D).
A script generating neutral 3D LUT textures is also included.
Preview