Michael Betke Posted August 5, 2010 Posted August 5, 2010 I would like to compare purelight 1:1 against other soltions now with the trial version available. I know how to export a second UV channel with arbuz exporter but how can I make it visible within the editor? Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments
Masterxilo Posted August 5, 2010 Posted August 5, 2010 Write a shader that makes use of the second uv set. The varying vec2 texcoord1; value is already calculated in the default .vert shader, so you only need to modify the pixel shader. Just add another texture lookup somewhere and use that color however you like. E.g. uniform sampler2D TEX_PRECALCLIGHT; ... precalculatedLighting = texture2D(TEX_PRECALCLIGHT,texcoord1); ... diffuse *= precalculatedLighting; And the wrapper .frag shader defines TEX_PRECALCLIGHT as texture1 or so. Quote Hurricane-Eye Entertainment - Site, blog.
Michael Betke Posted August 5, 2010 Author Posted August 5, 2010 lol ok. Dont understand a word... Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments
Recommended Posts
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.