Gandi Posted March 19, 2010 Share Posted March 19, 2010 Hi! I tried to implement a sun-billboard into my project.. as i couödnt find anything else i tried the corona.. but it doesnt work the way i want it to.. I want to set different appearance relative stuff in a shader. Im creating it like that: sun = CreateCorona(); SetCoronaRadius(sun, 1,2); PaintEntity(sun, "abstract::sun.mat"); PositionEntity(sun,Vec3(1,0,0)); so i checked the corona.frag shader.. this one was pretty confusing.. (why do you set the color at gl_FragData[3]. usually you use gl_FragData[0]..) my problems: if u just set the color in the frag shader its a black rectangle showing up.. also there is a little clipping problem as the corona disapperas when the center of it inst in the screen anymore.. hope some1 can help me.. Gandi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.