2,164 questions
1
vote
1
answer
62
views
Why does sampled occluder depth differ greatly from computed depth for the same projected point?
I tried to make a 3d point lighting for 2d top view game this way:
I have heightmap polygons and textures I render to different render layer and capture via heightmap canvas.
Next I render 3d scene ...
3
votes
1
answer
109
views
Inset shadow for an arbitrarily-shaped element
I'd like to give a custom shape to an element (e.g. using clip-path) and I'd like it to have an inset shadow which follows the shape.
This is an example of what I'd like to achieve, with a triangle ...
1
vote
1
answer
105
views
Android elevation not respecting borderRadius in React Native
I’m working on a React Native app ( "react": "19.0.0",
"react-native": "0.78.0") for Android.
I want to add a shadow using elevation on a View that has ...
0
votes
0
answers
58
views
How can I fix self-shadowing artifacts in my BGFX shadow mapping shaders?
I would like some help with me shadow mapping. The issue I am having, I am assuming is with self shadowing. It is like the shadow is not mapped to my model correctly.
See image to see what it looks ...
0
votes
1
answer
136
views
Strange border around popup when adding drop shadow with MultiEffect
I'm attempting to add a drop shadow effect around a QML popup, but when I do this with a MultiEffect, it creates an additional border around the popup (beyond the shadow).
Here's a minimal QML example ...
2
votes
2
answers
252
views
QML: Shadow around an Item
Trying to implement shadow with MultiEffect like this:
MultiEffect {
anchors.fill: item
source: item
shadowEnabled: true
shadowColor: "#9B9B9B"
...
1
vote
0
answers
60
views
Artifacts in PCSS realization
I'm trying to write my own 3d renderer. I'm stuck in the shadow stage. I can't figure out what I'm doing wrong with the PCSS implementation. At the edges of tall objects, the shadow becomes sharp.
I ...
2
votes
0
answers
151
views
Why does my shadow mapping implementation gives wrong results?
I am adding shadow mapping to my renderer.
Algorithm overview:
Render shadow map(one directional light for now) --> DXGI_FORMAT_D32_FLOAT depth buffer
Render gbuffer
Bind (1) as an ...
3
votes
2
answers
503
views
Shadow mapping: How to compute directional lights view and projection matrices
I want to add shadow mapping to my realtime renderer. I start with directional lights first.
The algorithm:
Render the shadow map from the light point of view.
When shading a worldspace point P it is ...
0
votes
1
answer
100
views
Unity weird shadow rendering in gameview only
I was checking out the lighting of my flashlight and set shadow to soft shadow and then noticed that in game view cam it was rendering weird shadows. if the light source is child of the camera then ...
1
vote
1
answer
146
views
How to prevent section header from inheriting shadow of List view?
I have a SwiftUI List where each row has a shadow under it, to add a 3D look to it. While the rows look great, the section header text seems to inherit the shadow from the list, and nothing I have ...
0
votes
0
answers
321
views
PyQt6 My QFrame has a shadow even though I've set it to Shadow.Plain
When I create a QFrame with PyQt6, and give it a border with the setLineWidth method, the resulting border has diagonal lines connecting the inner and outer corners of the border, creating a shadow ...
0
votes
1
answer
94
views
Flutter AppBar elevation changes background color how to maintain background while showing shadow?
Problem Description:
I'm working on a Flutter app, and I want to add a shadow to the AppBar using the elevation and shadowColor properties. However, when I set these, the AppBar's background color ...
2
votes
2
answers
140
views
Inner shadow in text using css
.leftSide > p {
font-size: 170px;
font-family: 'QuickSand';
text-align: end;
color: #2A2A2A;
-webkit-background-clip: text;
background-clip: text;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25), -...
3
votes
1
answer
90
views
Find shadowed vertices in 2d curve with point light
I have a set of vertices that form a curve in x and y. The curve is smooth, not convex, doesn't intersect and there are no vertical or beyond vertical parts. The x values are unique integers. The ...