Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Shader optimization question

$
0
0

@11110 wrote:

Can anyone tell me the best way to use same shader among multiple model.
Eg no 1.
Shader 1 -> model 1
Shader 1 -> model 2

or

Eg no 2.
Shader 1 -> model 1
Shader 1 (clone new 1) -> model 2

i hope someone able to understand it.
The reson i asking this, because of when i draw model1 i have 2 textures have to set shader 1, When i render model2 i have only 1 texture and here come with the problem, the 2nd texture cache from model1 remain in the shader.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles