Shader problem

Started by
1 comment, last by Falhar 17 years, 11 months ago
i'm trying to make particle shader . i've made basic shader and now i'am trying to add rotation .. and i'm geting strange results. when the angle of particle is other than 0 deg it slow down 300->20 FPS and makes weird(??) things with varying variables. :( code: float rot = radians(0.0); float COS = cos(rot); float SIN = sin(rot); vec2 p = vec2(COS*gl_Vertex.x-SIN*gl_Vertex.y,SIN*gl_Vertex.x+COS*gl_Vertex.y); vec4 pos; pos.xyz = pns.xyz+pns.w*(A*p.x+B*p.y); without rotation and 0 angle it works good but when i change angle to anything else it stops working good :(( - sorry for bad english
Advertisement
May just be that you have an older video card with some optimizations built in. What's your video card?
We should do this the Microsoft way: "WAHOOOO!!! IT COMPILES! SHIP IT!"
i've got radeon 9600 .. but other programs(HUMUS) works fine :(

This topic is closed to new replies.

Advertisement