Re: [osg-users] How to generate fixed alpha value?

2017-11-19 Thread Julien Valentin
Hi Judy there's no such thins as pseudo-random generator in glsl itself but you can code it for ex:Linear Congruent Generators : https://math.stackexchange.com/questions/337782/pseudo-random-number-generation-on-the-gpu I haven't tested so give us experience feedbacks about this func

[osg-users] How to generate fixed alpha value?

2017-11-19 Thread Judy
Hi all, Now??I have a flt. model with itself texture??but the internal format of the texture is RGB??not with ALPHA value??so the ALPHA TEST function is disabled. My question is how to generate some random fixed alpha value of the texture with the GLSL language??So that I can use the ALPHA