My own buggy portal implementation
This commit is contained in:
1 parent
ded1600175
commit
50314f1ad8
14 files changed
+446
-21
No files matched your search
@@ -22,7 +22,7 @@ void vertex() {
|
||||
// Pass the distance to the fragment shader using a varying attribute.
|
||||
vec3 world_position = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xyz;
|
||||
vec3 camera_position = (INV_VIEW_MATRIX * vec4(0.0, 0.0, 0.0, 1.0)).xyz;
|
||||
|
||||
|
||||
pixel_distance = distance(world_position, camera_position);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user