mirror of
https://github.com/Relintai/material-maker.git
synced 2025-01-25 18:59:18 +01:00
Fixed tex3d preview shader
This commit is contained in:
parent
a0e5ad18b6
commit
09b3aff5ff
@ -9,7 +9,7 @@ vec3 calcColor(vec4 uv) {
|
|||||||
|
|
||||||
float raymarch(vec3 ro, vec3 rd) {
|
float raymarch(vec3 ro, vec3 rd) {
|
||||||
float d=0.0;
|
float d=0.0;
|
||||||
for (int i = 0; i < 50; i++) {
|
for (int i = 0; i < 200; i++) {
|
||||||
vec3 p = ro + rd*d;
|
vec3 p = ro + rd*d;
|
||||||
float dstep = calcdist(p);
|
float dstep = calcdist(p);
|
||||||
d += dstep;
|
d += dstep;
|
||||||
|
Loading…
Reference in New Issue
Block a user