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

Is it possible to define default shader values using desktop gl.

$
0
0

@willmotil wrote:

Too say in the ogl version is it possible in the shader to define.

float SomeValue = 1.0f;

then later in code overide it via

effect.Parameters["SomeValue"].SetValue(0.0f);

This seems to work for dx but not on gl.
Or i dont know the keyword to allow it ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles