cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to apply a shader with model regular color, texture?

william_shih
6-Contributor

How to apply a shader with model regular color, texture?

Hi,

 

I use the reflect shader on my object. But it remove model regular color, texture.

I wish to apply a shader to make it more colorful, not replace it.

Is it possible?

 

Before shader

william_shih_0-1628152391417.png

 

After shader

william_shih_1-1628152424627.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello Willam,

 

Yes, from a technical point of view, it is possible but the best solution is to modify the texture itself.

 

Generally, we use the shader to have dynamic effect in Experience.

Shader is a program sent to graphic card (GPU) calculate in real time and at each frame.

 

So for a performance reason, it is better to modify the texture in an image editor like photoshop or the gimp.

 

If a shader is needed, for example, in GLSL programming shader language (used in Vuforia Studio), we can add a light to modify texture rendering.

An example here :

https://stackoverflow.com/questions/63892847/how-do-i-adjust-the-my-glsl-code-to-add-additional-light-sources

 

Best regards,

Samuel

View solution in original post

3 REPLIES 3

Hello Willam,

 

Yes, from a technical point of view, it is possible but the best solution is to modify the texture itself.

 

Generally, we use the shader to have dynamic effect in Experience.

Shader is a program sent to graphic card (GPU) calculate in real time and at each frame.

 

So for a performance reason, it is better to modify the texture in an image editor like photoshop or the gimp.

 

If a shader is needed, for example, in GLSL programming shader language (used in Vuforia Studio), we can add a light to modify texture rendering.

An example here :

https://stackoverflow.com/questions/63892847/how-do-i-adjust-the-my-glsl-code-to-add-additional-light-sources

 

Best regards,

Samuel

wood gnerally isnt reflective, so it doesnt make sense to have reflectivity here.

 

but otherwise, you can create shaders that will simulate reflectance over a textured surface - you end up needing multiple textures defined.

its a complex, advanced usecase, but it is possible

 

here's an old example showing multi-texturing - https://www.youtube.com/watch?v=IOh_iUTXLpU

Top Tags