first works of omni shadows

This commit is contained in:
2023-02-16 16:57:29 +03:00
parent 69caa98d04
commit 3c9386de63
7 changed files with 328 additions and 54 deletions

View File

@@ -37,7 +37,8 @@ RendererBase::RendererBase(QGLView * view_)
, buffer_lights_pos(GL_UNIFORM_BUFFER, GL_STREAM_DRAW)
, textures_empty(GL_RGBA, false)
, textures_maps(GL_RGBA, true)
, shadow_maps_cone(GL_R32F, false) {
, shadow_maps_cone(GL_R32F, false)
, shadow_maps_omni(GL_R32F, false) {
textures_manager = new TextureManager(view);
maps_size = QSize(1024, 1024);
maps_hash = 0;
@@ -62,6 +63,7 @@ void RendererBase::initTextureArrays() {
im.fill(0xFF8080);
textures_empty.load(f, im, emrBlue);
shadow_maps_cone.init(f);
shadow_maps_omni.init(f);
}