diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-05-18 19:10:03 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-05-18 19:12:40 +0300 |
commit | 5fa0b8778bba85261526f818f392a95bc3035a1a (patch) | |
tree | 4f4562f6453637f78848033fcc6e6df18182aeb7 /source/blender | |
parent | 947b756d5e8af3d056fe0a7cabc7a8e376732255 (diff) |
BGE: Set default envMap resolution to 512 pixels
I propose to change the environment map render default resolution (600) to 512 (Thanks brecht for the correction... I don't know why I said dpi) (to make it compatible with this script: http://en.wikibooks.org/wiki/GLSL_Pr...cting_Surfaces ) to make cubeMap reflections easier and avoid this error:
invalid envmap size please render with CubeRes @ power of two
unable to initialize image(0) in MAMaterial, image will not be available
http://blenderartists.org/forum/showthread.php?371232-BGE-proposal-Set-default-envMap-resolution-to-512-dpi
http://blenderartists.org/forum/showthread.php?370026-Problem-with-cube-map-textures (post 11)
Author : youle (Ulysse MARTIN)
Reviewers: hg1, agoose77, lordloki, moguri, panzergame, dfelinto
Reviewed By: panzergame, dfelinto
Subscribers: brecht
Projects: #game_engine
Differential Revision: https://developer.blender.org/D1306
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index 246e3f2a316..2ea903247b2 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -629,7 +629,7 @@ void BKE_texture_default(Tex *tex) tex->env->stype = ENV_ANIM; tex->env->clipsta = 0.1; tex->env->clipend = 100; - tex->env->cuberes = 600; + tex->env->cuberes = 512; tex->env->depth = 0; } @@ -1423,7 +1423,7 @@ EnvMap *BKE_texture_envmap_add(void) env->stype = ENV_ANIM; env->clipsta = 0.1; env->clipend = 100.0; - env->cuberes = 600; + env->cuberes = 512; env->viewscale = 0.5; return env; |