Jump to content

shader help

Recommended Posts

I am trying to figure out how to create a custom shader in vex for creating a glass shader with refraction for bending light. Additionally, i am trying to create a shader for lava that uses one shader when the temperate or speed is above a certain threshold. Like when it is flowing fast it uses the liquid lava shader and then switches over to the solid lava shader when the speed slows down. How can i achieve these shaders? I have been having some issues with creating these.

Link to comment
Share on other sites


1. what do you mean by "a glass shader with refraction for bending light"? do you have any reference how should result look like?

2. with lava, there are more ways to achieve such effect. you have to tell something about the technical approach you want to take, what is your input data, post the results you managed to achieve (if possible) and ask the specific questions if you want to get specific answers. one way is to have a geometry attribute based on velocity or whatever you want and use that as a mask in a shader to blend solid lava and the liquid material.

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.

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.

  • Create New...