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

override Shaders, and HDRP Shader #197

Open
rafaP opened this issue Apr 29, 2022 · 0 comments
Open

override Shaders, and HDRP Shader #197

rafaP opened this issue Apr 29, 2022 · 0 comments

Comments

@rafaP
Copy link

rafaP commented Apr 29, 2022

How can I override the shaders used in the model with the import settings?

ImportSettings importSettings = new ImportSettings();
ShaderSettings shaderSettings = new ShaderSettings();

//But inside the shadersettings we can't define the shader to override. only read.
shaderSettings.Metallic = ShaderToOver;
importSettings.shaderOverrides = shaderSettings;
createdObject = Importer.LoadFromBytes(b3dm.GlbData, importSettings);

The URP shader that you have it works in HDRP.

#73 (comment)

Maybe you can add the HDRP folder and the shader to the project so when we load from git it won't get pink all the time

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

No branches or pull requests

1 participant