Top "Shader" questions

A shader is a program to perform calculations on geometry or pixel data in computer graphics.

Unity3D, round the edges of a box, cube?

What's the usual way to round the edges on a cube, a rectangular object as in the examples? The ideal …

unity3d shader bump-mapping
How to write a Unity Shader that respects sorting layers?

I want to sort my Sprites using Unitys sorting Layers. I attached a custom Shader to one of my Sprites. …

unity3d shader cg unity3d-2dtools
Write A simple raycast shader

I want to do a simple single-pass raycast shader. That is, i pass the vertex's world position in vertexshader, and …

unity3d shader volume-rendering
Shader position vec4 or vec3

I have read some tutorials about GLSL. In certain position attribute is a vec4 in some vec3. I know that …

performance opengl vector glsl shader
OpenGL ES 2.0 and vertex buffer objects (VBO)

I can't figure out how to use a vertex buffer object for my terrain in opengl es 2.0 for iphone. It's …

iphone opengl-es-2.0 shader vbo vertex-buffer
GLSL multiple shaderprogram VS uniforms switches

I'm working on a shader manager architecture and I have several questions for more advanced people. My current choice oppose …

architecture glsl shader
HLSL Pixel Shader - Change Image Color For Specific Hue

I'd like to write a pixel shader that takes an input image, and converts all of the colors of one …

shader hlsl
Get accurate integer modulo in WebGL shader

I want to get an accurate modulo of x and y in a WebGL fragment shader. x and y are …

webgl shader fragment-shader
Unity3D - How do you turn off "receive shadows" in a shader made with Shader Graph?

Unlike default URP shaders, custom Shader Graph shaders dont come with a "receive shadows" checkbox as you can see here. …

unity3d shader shader-graph
How to pass normals to a Vertex Shader in GLSL when using glDrawElements

I am building a simple 3D game for practice, and I am having trouble passing normals to my shader when …

c++ opengl glsl shader lighting