Version 7 and Perspective Orientability
2017-03-04With version 7 we now have fully working perspecitive projection orientability maps. https://github.com/dmdware/sped/blob/master/shaders/orpersp2.frag https://github.com/dmdware/sped/blob/master/shaders/orpersp2.vert The advantage of using orientability maps compared to using 100's+ of vertices per model is the great reduction in matrix multiplication, along with unlimited detail and other mentioned benefits. Check the "up_info2.txt" example included in the "renders/" folder for an example of orientability maps in action.
Read the full notes
Note: although a matrix multiplication is used at the end of the perspective fragment shader to obtain fragment depth, this can be simplified (eg, using a dot product, a scale and offset), resulting in only four matrix operations in the vertex shader. Parameters such as search jump offsets, minimum discard distance and number of search steps could also be adjusted based on object distance, detailization, and other factors.




