-
Posts
3,618 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by shadmar
-
-
Air hockey:
- 1
-
-
Just use a second camera and SetRenderTarget or set target in the editor.
https://www.leadwerks.com/docs?page=API-Reference_Object_Entity_Camera_SetRenderTarget
- 2
-
Trying out raytraced ocean with local objects.
- 13
-
works for me
-
float slope = 1.0-ex_normal.y; vec4 g1=texture(texture0,ex_texcoords0*42); vec4 g2=texture(texture1,ex_texcoords0*42); vec4 g3=texture(texture2,ex_texcoords0*42); vec4 g4=texture(texture3,ex_texcoords0*42); vec4 g1full=texture(texture0,ex_texcoords0); vec4 g2full=texture(texture1,ex_texcoords0); vec4 g3full=texture(texture2,ex_texcoords0); vec4 g4full=texture(texture3,ex_texcoords0); g1=mix(g1,g1full,0.2); g2=mix(g2,g2full,0.2); g3=mix(g3,g3full,0.2); g4=mix(g4,g4full,0.2); outcolor = g1; outcolor = mix(outcolor,g2,smoothstep(0.0,0.05,slope)); outcolor = mix(outcolor,g3,smoothstep(0.01,0.125,slope)); outcolor = mix(outcolor,g4,smoothstep(0.125,0.26,slope));
-
-
Not sure you can allocate 13 channels? (4 diffuse, 4 normal, 4 specular + 1 for alpha), can't test right now.
Might work if you pack specular into the alpha channel of the normal texture, then you would need only 9. (4 color, 4 normal with specular as alpha) + one mask alpha.
-
Seems to be dead (dropbox killed it) Here it is (again unchanged have idea if it works) :
https://www.dropbox.com/s/1oui1t1b6zyxbs9/DayNightCycle_GodRays.zip?dl=0
- 2
-
This has been asked before, and I don't think you can change by code.
But for workaround I think you can do one of these:
1. add an invisible csg box and set it as parent to the model. (not enteirly sure, cant test this atm)
2 .add 8 single verts representing your aabb in the modeler and resave, no faces needed.
- 1
-
-
You could use env probes, and or SSR
-
assign rendertarget texture to a material and apply material to the monitor/brush/model
-
There is an tesselation shader shipped with leadwerks, diffuse+normal+specular+tessellation.shader
-
Bone scaling can also use to create diversity like bigger hands, feet, longer arms, bigger head etc.
- 2
-
Awesome :-)
-
I know several swedish jokes
- 1
-
Cool :-)
-
..Looks like that old/mobile nVidia cards have trouble to run shadmar's _hblur.shader and _vblur.shader.
Still figuring out why
they don't do for... loops so if you unpack the loops into actual statements it should work.
-
Maybe it's old news, but here they are listed for grabs:
- 2
-
vertex shader of all shaders under Shaders/Model/Animated/*
mat3 nmat = mat3(entitymatrix);
should be:
mat3 nmat = mat3(entitymatrix * animmatrix);
You can clearly see the difference when playing animations, normals will now update with the animation.
- 7
-
-
Hi
We have day and night cycle going in our game, and when the sun is getting really low, the shadows covers vast areas massivly increasing batch count and polycount and we get a huge amount of fps drop, 50%
Is there a way to set shadow-range on low angles?
Turning shadows off on low sunset/rise is very intrusive visually.
Here you can see the difference on middle of the day, and just before the sun sets.
Same scene, but light angle is different:
- 1
-
Probably too late but you get some with dedicated geforce cards for $500
- 1
Mars on Engine LeadWerks :D
in Showcase
Posted
Here are 2 gamma correction postprocess shaders you can try:
or the cheapest one, looks like the one above but with no adustments to gamma.