Jump to content

Sphere mapping - reflect Shader


ParaToxic
 Share

Recommended Posts

File Name: Sphere mapping - reflect Shader

File Submitter: ParaToxic

File Submitted: 02 Oct 2011

File Category: Shaders

 

Hey,here is a little shader for Sphere mapping (looks like reflection).The reflection is static.Copy the shader.vert file to Shader/Mesh folder.You have to put in the material file the diffuse texture in texture0 and the sphere/reflection map to texture 1.In shader.frag you can andjust the mixture factor,which is default on 0.4.With Directional Light it looks not so well,maybe somebody can tell me why.

 

Here is a picture in action :

 

mvmgvi3u.jpg

 

Click here to download this file

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...