![]() |
![]() |



Submitted by: falcon13efx
Date Submitted: 2005-03-26 18:43:45
This is a demonstration of how the new shader designer script works. It is a file that contains GPU programs and can contain any kind of program you want (and the engine can parse and execute. I only target ARB program and GLSL right now).
cipherfx 1.0
vertex
{
ARBVP
{
constant { ... }
input { ... }
code { ... }
}
GLSL
{
constant { ... }
input { ... }
code ...
}
}
fragment
{
ARBFP { ... }
GLSL { ... }
NVPARSE { ... }
etc..
}
This shows how you can attach a GPU program to the shader designer. Such a program could be designed in another shader designer, and than converted into an FX file for Cipher.
In the engine, all of this is handled automatically, there was some breaking of how the system used to work but all of the original features are still in there, and a few more, like object and eye linear, planar projection textures (it was in there, but it was broken), and other nifty things. Oh my, yes, pbuffers, 1d and 3d textures, my oh my... possibly, soft shadow blendng, shadow maps, occlusion culling.. yes yes!
I am making the mods available to the community. If you like them you can just tell everyone how cool you think I am etc. Whatever. I don't care. I live to hack code, and hack code to live, you can have it for free.
Basically, if there is an FX file, and it can run on the GPU, it will run the script. Otherwise, it will run whatever other commands are in the pass. So you can still have a fallback to older systems.
Peace out.
[Recent Contributions] [Recent Shaders]
User Contributed Comments