Skip to content

Commit

Permalink
[Shadows] Wind animated vertices are now captured in the shadow maps
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Oct 24, 2023
1 parent 8066d6b commit f344f7c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions data/shaders/depth_light.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,17 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

//= INCLUDES =========
//= INCLUDES ===========================
#include "common.hlsl"
//====================
#include "common_vertex_operations.hlsl"
//======================================

Pixel_PosUv mainVS(Vertex_PosUvNorTan input)
Pixel_PosUv mainVS(Vertex_PosUvNorTan input, uint instance_id : SV_InstanceID)
{
Pixel_PosUv output;

input.position.w = 1.0f;
output.position = mul(input.position, buffer_pass.transform);
#if INSTANCED
output.position = mul(output.position, input.instance_transform);
#endif
output.position = mul(output.position, buffer_light.view_projection[0]);

output.uv = input.uv;
output.position = compute_screen_space_position(input, instance_id, buffer_pass.transform, buffer_light.view_projection[0]);
output.uv = input.uv;

return output;
}
Expand Down

0 comments on commit f344f7c

Please sign in to comment.