Technique used to produce shadows in a 3D scene, by drawing objects to a texture or textures, and then mapping them onto a scene.
Questions tagged [shadow-mapping]
199 questions
-2
votes
1 answer
Send shadow map to shader in OpenGL
I am trying to implement shadow-mapping in my scene, but all I get is zeros in my fragment shader when I call texture() (I've tested it with == 0.0). My question: Am I sending the depth texture to the shader correctly?
Here is my fragment shader…

clabe45
- 2,354
- 16
- 27
-3
votes
1 answer
OpenGL|ES add shadow / shadow mapping
What is the easiest way to add shadows to a 3d Object?
I have objects information(vertices, texCoordinates, normals, indices) stored in arrays.
There are some frameworks like isgl3d for iOS that allow users to load 3d .obj files and add shadows, but…

mxg
- 20,946
- 12
- 59
- 80
-4
votes
1 answer
Simply generating a cubemap leads to a black screen
Here is a a minimal example causing GL to render a black screen:
// ... all the usual GL init code etc. & GLAM includes
const int SHADOW_SIZE = 1024;
const int SWIDTH = 1200, SHEIGHT = 900;
unsigned int shadowMap, albedoSpec;
// Begin snip…
user3482098