Jump to content

God ray eash material versioan


NasimiAsl
 Share

Recommended Posts

Link to comment
Share on other sites

hey jahow

 

sure 

 

step 1:  i make method for compose multi material

 

like this [ {r:mat1 , e:opacity1} , ... ]

 

step 2 : build array   with screen shot and move it in vertical direction 

 

** use some method like paw for make natural movement 

 

step 3 : use step1 method and make pic

 

step 4 : do all steps again with horizontal direction 

 

 

var array = [];

var alpha = 1.0; 
 
for (var  movement = 0.002; movement < 0.49; movement += 0.008)
{
        alpha -=  0.05;  // lose some alpha in each step
        alpha = Math.max(0., alpha);
 
        var naturalMove=  Math.pow(movement,0.9)/1.33  ;
 
                                                                              /* vec2 direction vec2(1.0,0.)  */
        array.push({ r: eash.cameraShot({ uv: ' uv  +vec2('+ naturalMove +',0.0)' }), e: alpha });  // push { r : 'gl_FragColor' , e:'alpha' }
        array.push({ r: eash.cameraShot({ uv: ' uv  +vec2(-1.*'+naturalMove+',0.0)' }), e: alpha }); // push in 1-*dir
}
 
// eash make new postprocess with this option and make shader 
 eash.linerPostProcess(    eash.multi( array ,true)  /*step 1 method */ , camera, 0.5  /* scale screen to 50% */); 
 
 
mail me for more : [email protected]
Link to comment
Share on other sites

  • 3 months later...

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...