gamedev123 Posted September 30, 2013 Share Posted September 30, 2013 I did some searching around the forums and saw some nice shaders on display. I'm wondering, for the next 12 months, what the opengl capabilities of Leadwerks will be, and is there a resource for visually designing shaders, that works with the current version of Leadwerks? (e.g., http://www.vis.uni-stuttgart.de/glsldevil/) (http://wwwshadertoy.com) ...and is there a shader resource for copy/paste/modifing shaders? The project I'm planning for Leadwerks uses very bright, primary colors and very few game tokens. Think Bejeweled... I'm hoping I can embue the flat, rectangular surfaces of these game tokens with a gemlike sense, additionally a sense that they have gemlike interiors with faux refraction. I'd imagine multi-texturing could solve the problem. Perhaps multiple layers of textures. However I wonder if a shader is a better solution. Optimally I'd be hoping for something like a cube carved out of sample A, then colorized red, blue, green, etc. Failing that I'd go for B. Or perhaps C or D if their refraction/highlights were reactive to viewer position/angle. A http://www.shutterstock.com/pic-74820046/stock-photo-diamond-stone-on-black-space-beautiful-sparkling-diamond-on-a-light-reflective-surface-high.html?src=DhbbyzqIyRKwzlsn6tocVg-1-26 B http://www.shutterstock.com/pic-109026758/stock-photo-diamond-jewel-on-white-background.html?src=p-74820046-3 C http://www.shutterstock.com/pic-73481383/stock-vector-diamond-realistic-vector-illustration.html?src=p-74820046-4 D http://www.shutterstock.com/pic-130969427/stock-vector-vector-abstract-polygonal-background.html?src=DhbbyzqIyRKwzlsn6tocVg-1-2 Again, the game uses very few tokens, so the bang for the buck on getting these super-juicy looking would be worth it. As always, ANY ADVICE is helpful. Quote Link to comment Share on other sites More sharing options...
shadmar Posted September 30, 2013 Share Posted September 30, 2013 Shadertoy shaders works almost as is in current Leadwerks 3.0, but you just need to rename iChannel0 to texture0, iTime to currenttime etc.. However shadertoy is mostly built for showoff and uses fullscreen texture coordinates. Here is a shot of the moving clouds from shadertoy in a LE3 scene : There is no visual designer, but there is a glsl editor and a material editor. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
gamedev123 Posted September 30, 2013 Author Share Posted September 30, 2013 Thanks for the tip about Shadertoy Shadmar. Sadly, Shadertoy often crashes my browser... :-) Also found this: http://http.developer.nvidia.com/GPUGems/gpugems_ch16.html (figure 16.4) ...using a depth map to approximate scattering. Too diffuse for a ruby, emerald, diamond. But maybe a start? Quote Link to comment Share on other sites More sharing options...
shadmar Posted September 30, 2013 Share Posted September 30, 2013 Haven't tried any gems, but this is maybe something in the area, light coming thorugh and subsurface http://www.leadwerks.com/werkspace/page/videos/_/-r206 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
gamedev123 Posted September 30, 2013 Author Share Posted September 30, 2013 Pretty cool! Quote Link to comment Share on other sites More sharing options...
Rick Posted September 30, 2013 Share Posted September 30, 2013 Did you ever release that shader shadmar? Would love to use that. Quote Link to comment Share on other sites More sharing options...
shadmar Posted September 30, 2013 Share Posted September 30, 2013 I guess not, I had a quick search for it, not sure where it did go, I'll take another look tomorrow. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
shadmar Posted October 2, 2013 Share Posted October 2, 2013 Found, and uploaded to asset store : http://www.leadwerks.com/werkspace/files/file/459-subsurface-shader/ 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
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.