mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 00:44:43 -05:00
Add methods for debug rendering of box faces and box edges
This commit is contained in:
@@ -22,17 +22,17 @@
|
||||
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
||||
****************************************************************************************/
|
||||
|
||||
#include "fragment.glsl"
|
||||
#include "PowerScaling/powerScalingMath.hglsl"
|
||||
#include "PowerScaling/powerScaling_fs.hglsl"
|
||||
|
||||
in vec3 fs_vertexPosition;
|
||||
#include "fragment.glsl"
|
||||
|
||||
in vec4 fs_vertexPosition;
|
||||
|
||||
uniform vec4 color;
|
||||
|
||||
Fragment getFragment(){
|
||||
Fragment frag;
|
||||
frag.color = color;
|
||||
vec4 p = z_normalization(vec4(fs_vertexPosition, 1));
|
||||
frag.depth = p.z;
|
||||
frag.depth = fs_vertexPosition.w;
|
||||
return frag;
|
||||
}
|
||||
Reference in New Issue
Block a user