GLTFUtility icon indicating copy to clipboard operation
GLTFUtility copied to clipboard

override Shaders, and HDRP Shader

Open rafaP opened this issue 2 years ago • 0 comments

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.

https://github.com/Siccity/GLTFUtility/issues/73#issuecomment-1065806562

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

rafaP avatar Apr 29 '22 16:04 rafaP