Skip to content
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 normalMapSacle to MRGTStandardShader #78

Merged
merged 2 commits into from Jul 25, 2022

Conversation

HoloMoto
Copy link
Collaborator

Overview

The _NormalMapScale parameter, which was unused and dead from the MRGStandardShader parameters, can now be used to change the intensity of the normal map.

スクリーンショット 2022-07-17 184014

Changes

fix #77

・StandardShaderGUI

normalMapScale is now displayed on the inspector.

・GraphicsToolsStandardProgram

Changed to multiply WorldNormal by _NormalMapScale value after normal map packing is complete.

Verification

I have confirmed that I can change the intensity of the normal map both in normal and when using TriplanerMapping.

ダウンロード

Copy link
Member

@Cameron-Micka Cameron-Micka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much, this is a much-needed feature!

Added a few comments below. 😊

@HoloMoto
Copy link
Collaborator Author

@Cameron-Micka
Sorry for the late response, I am Summer Vacation!
I found it cooler to use UnpackeNormalScale as you suggested.

I did not know this function and still need to learn more about it.

I have made some other modifications based on the other fb's I received.
Please check !

Copy link
Member

@Cameron-Micka Cameron-Micka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for making these changes. Hope you had a great vacation!

@Cameron-Micka Cameron-Micka merged commit f36b152 into microsoft:main Jul 25, 2022
@HoloMoto HoloMoto deleted the holomoto/normalScale branch July 26, 2022 00:55
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.

Implementation of normalMapScale
2 participants