Skip to main content
gamedev.net
🔒 Locked

Shader problem

Started by Falhar Apr 28, 2006 at 1:44 PM 1 replies 650+ views
Original Post
Falhar
Falhar
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
dbzprogrammer
dbzprogrammer
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!"
Falhar
Falhar
i've got radeon 9600 .. but other programs(HUMUS) works fine :(

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.