|
AutoUV shaders [updated: 05/13/2020]
|
|
10-23-2016, 11:23 AM
(This post was last modified: 10-23-2016 02:04 PM by linkoboy.)
Post: #42
|
|||
|
|||
|
RE: AutoUV shaders [updated: 10/29/2015]
Hi everybody,
If you are interesting to have a shader that show normal like in this picture : ![]() I'll share to you this two files that I've modified from wings 3d 1.5.4 : vertex_color.vs and vertex_color.fs. I put some objects, a torus a sphere and a cone on the [X-Z] ground. Link to the test scene : test_norlmal.wings For me, the up axis is [Y]. I'm still using Wings 3D v1.5.4. I've taken this shaders : vextex_colors.vs and vertex_colors.fs and just modified a little to have this result (see attached result.png) Here is the shaders : Vertex shader : vertex_color.vs Code: varying vec3 VertexColor;Fragment shader : vertex_color.fs Code: varying vec3 VertexColor;If you want flip the colors in X or Z axis, you can just trick the boolean to have the desired result. Best regards |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




