Jump to content

Coronas


Gandi
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...