relief map support, small refactoring, shadow bias now based on geometry normal
This commit is contained in:
@@ -57,13 +57,15 @@ void RendererBase::initTextureArrays() {
|
||||
QOpenGLExtraFunctions * f = view;
|
||||
textures_maps.init(f);
|
||||
textures_empty.init(f);
|
||||
textures_empty.resize(f, QSize(1, 1), 2);
|
||||
textures_empty.resize(f, QSize(1, 1), emrCount);
|
||||
textures_empty.bind(f, tarEmpty);
|
||||
QImage im(1, 1, QImage::Format_RGBA8888);
|
||||
im.fill(0xFFFFFFFF);
|
||||
textures_empty.load(f, im, emrWhite);
|
||||
im.fill(0xFF8080);
|
||||
textures_empty.load(f, im, emrBlue);
|
||||
im.fill(0x000000);
|
||||
textures_empty.load(f, im, emrBlack);
|
||||
shadow_maps_cone.init(f);
|
||||
shadow_maps_omni.init(f);
|
||||
depth_maps_cone.init(f);
|
||||
@@ -402,7 +404,7 @@ void RendererBase::initCoeffTextures() {
|
||||
}
|
||||
}
|
||||
createCoeffTexture(tex_coeff[0], data.constData(), size, 2);
|
||||
createNoiseTexture(tex_coeff[2]);
|
||||
// createNoiseTexture(tex_coeff[2]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user