wolfmanfx
19-06-2006 02:37:45
I have read that Falagard got Lighting working with shaders if this true it would nice if could share ur great work with us
Falagard
19-06-2006 03:20:52
I have point and directional light per light iteration shaders working, but I'm not sure how to create a new lit texture mode yet. What I've done is modified the existing SplattingShader materials, but I think I have to register a new texture mode, right Tuan?
EDIT
NM, I have it figured out I think. I can specify whatever I want for the texture mode and it'll just look up a material based on that name.
Also, doesn't currently work with additive shadows. Easy to add, however I'm not doing it
tuan kuranes
19-06-2006 08:11:10
I think I have to register a new texture mode, right Tuan? I can specify whatever I want for the texture mode and it'll just look up a material based on that name.
yes, that's the power of the new Texture mode Way. you can even make your own 2 pass splatting shader very easily now, no C++ code needed.
(but I now haev to modify mapslitter to generate multiple coverage depending of user number of splats)
wolfmanfx
19-06-2006 11:13:09
Can u post the modified shader for dirc. light splatting shader?
Falagard
19-06-2006 17:53:48
Can u post the modified shader for dirc. light splatting shader?
Hold your horses big guy. Yes, can do. Wait.
Falagard
19-06-2006 18:31:13
It's now in CVS in ogreaddons (might take a few hours to get to anon cvs if that's what you're using).
Change your texture mode in your terrain cfg file to PLSplattingShaderLit, turn on compression, normals and morphing.
I haven't tested any other combinations.
Clay
wolfmanfx
19-06-2006 18:46:03
Ok and where should i look under materials and assets for the terrain material and shader?
Falagard
19-06-2006 18:56:13
Just copy the materials folder
ogreaddons\paginglandscape\samples\media\paginglandscape2\materials
into
ogrenew\samples\media\paginglandscape2\materials