7.2 添加地板 | Shadertoy中文教程 #17
Replies: 1 comment
-
|
生成网格纹理的方法: float getGridTexture(vec2 uv)
{
float gridX = step(mod(uv.x, 0.1)*10.0,0.5) - 0.5;
float gridY = step(mod(uv.y, 0.1)*10.0,0.5) - 0.5;
return step(gridX * gridY, 0.0);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
7.2 添加地板 | Shadertoy中文教程
我们可以通过以下功能添加一个地板,该地板将位于我们的球体下方一个单位:
https://shadertoy.peakcoder.com/color-3d-sdf/unique-color
Beta Was this translation helpful? Give feedback.
All reactions