pfx_pow.png
A small Posteffect experiment with a simple scattering algoithm (not the precomputed one, but o'neils)
The detail power lies in the posteffect / shader system of Ultraengine. In Leadwerks you needed to create a lua script and pass all needed data to your shader.
In this case:
In leadwerks i would have to iterate over all lights, calculate the vector and last pass it to the shader. if i want to have multiple lights to effect the shader i have 2 options: execute the pfx for each light source once ( with a last step to scale the colors down) or to create a limited array with the vector data for all lights.
In UltraEngine this is all not needed as you have access to all engine data within the shader at nearly every time. Here i am just iterating through all directional lights inside the shader, no need of counters or vectors passed, i get instant access to the direction, color and everything else.
That makes it real fun to build and write shaders.
- 8
- 1
Recommended Comments
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.