Skip to content

Added ambient light support in PBR shader - #1077

Merged
Ali-RS merged 2 commits into
jMonkeyEngine:masterfrom
Ali-RS:pbr-ambient-light
Apr 27, 2019
Merged

Added ambient light support in PBR shader#1077
Ali-RS merged 2 commits into
jMonkeyEngine:masterfrom
Ali-RS:pbr-ambient-light

Conversation

@Ali-RS

@Ali-RS Ali-RS commented Apr 25, 2019

Copy link
Copy Markdown
Member

to control the brightness and color of the light probe. Very useful for simulating day/night light and any use case where you don't rebake the probes every time the ambient color needs to change.

@Ali-RS

Ali-RS commented Apr 25, 2019

Copy link
Copy Markdown
Member Author

This uses a cleaner solution over my previous PR: #1075

@grizeldi

Copy link
Copy Markdown
Member

This will also be very useful for lowering probe intensity so that the point lights stand out more.

On the other hand, what happened with the indent formatting in the shader file?

@Ali-RS

Ali-RS commented Apr 25, 2019

Copy link
Copy Markdown
Member Author

On the other hand, what happened with the indent formatting in the shader file?

Afew of them had no indent, some had 5 and most of them had 2, so I updated others to use 2 spaces. Do not know what is the standard for shader so. Even Netbeans formatter not helped.

@Ali-RS
Ali-RS merged commit 36ddb5b into jMonkeyEngine:master Apr 27, 2019
@Ali-RS
Ali-RS deleted the pbr-ambient-light branch April 27, 2019 10:29
@stephengold stephengold added this to the v3.3.0 milestone Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants