Minor - Implémente le rendu des ombres - V14.6.0
Ajoute la possibilité de rendre une shadow map pour les objets de la scène. Supprime la dépendance de la texture du depth shader et ajoute une option pour caster les ombres sur les RenderComponents. Modifie la taille de la fenêtre dans l'imgui.ini
This commit is contained in:
@@ -544,6 +544,13 @@ private:
|
||||
* @return True if the refraction was rendered to the texture successfully, false otherwise.
|
||||
*/
|
||||
bool render_refraction_to_texture();
|
||||
|
||||
/**
|
||||
* Render the shadow map texture for the scene.
|
||||
* @return True if the shadow map was rendered successfully, false otherwise.
|
||||
*/
|
||||
bool render_shadow_map();
|
||||
|
||||
/**
|
||||
* Render the reflection of the scene to a texture.
|
||||
* This function will render the reflection effects, such as water or mirrors, to a texture.
|
||||
@@ -616,7 +623,7 @@ private :
|
||||
// ------------------------------------- //
|
||||
|
||||
XMMATRIX base_view_matrix_;
|
||||
render_texture_class* render_texture_, * refraction_texture_, * reflection_texture_;
|
||||
render_texture_class* render_texture_, * refraction_texture_, * reflection_texture_,* shadow_texture_ ;
|
||||
render_texture_class* scene_texture_;
|
||||
display_plane_class* display_plane_;
|
||||
int screen_width_, screen_height_;
|
||||
|
||||
Reference in New Issue
Block a user