Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Yuliang
/
ICON
like
421
Runtime error
App
Files
Files
Community
23
refs/pr/2
ICON
/
lib
/
renderer
/
gl
/
data
/
normal.fs
Yuliang
init
162943d
over 2 years ago
raw
Copy download link
history
blame
Safe
202 Bytes
#version
330
out vec4 FragColor;
in
vec3 CamNormal;
void
main()
{
vec3 cam_norm_normalized
=
normalize(CamNormal);
vec3 rgb
=
(cam_norm_normalized
+
1.0
)
/
2.0
;
FragColor
=
vec4(rgb,
1.0
);
}