This is MojoShader with my personal WIP changes related to fully supporting Direct X effect (.fx) file parsing and rendering.
- Misc. fixes to effect and preshader parsing
- Additional effect data parsed
- Pass state settings
- Sample state settings
- Param default values
- Addition of OpenGL effect API that is similiar to the DirectX 9 effect API
- Shader setup for all techniques+passes
- Pass render state application
- Sample state application
- Instance draw support
- These are just the source files I touched
- If you want to utilize these changes first start with https://hg.icculus.org/icculus/mojoshader/
- This has only been tested with effect files compiled with fx_2_0 profile
- Map Texture params to Sampler params
- You currently have to set texture units through Sampler params (different then Direct X)
- Render state shadowing to minimize redundant state changes (Pass and Sampler state)
- Support all Pass and Sampler state possibilities
- Support assigning default values to all Param types
- Clean up changes and match resident coding style better
For more information about MojoShader, visit the website: