World textures displaying for viewport in BI.
authorAlexander Romanov <a.romanov@blend4web.com>
Wed, 27 Jan 2016 09:06:57 +0000 (12:06 +0300)
committerAlexander Romanov <a.romanov@blend4web.com>
Wed, 27 Jan 2016 09:06:57 +0000 (12:06 +0300)
commit771f73b6bedbdd1c1e2993bd8d3680d53fa67b7c
tree1e1593c722640fc00a1755d1acd3a4263ff396b0
parentf6ff8f27e35d7b9596bbb2c55c3cf464f6e6ffc0
World textures displaying for viewport in BI.

This patch supports "Image or Movie" and "Environment map" types of world texture for the viewport.
It supports:

  - "View", "AngMap" and "Equirectangular" types of mapping.

  - Different types of texture blending (according to BI world render).

  - Same color blending as when it lacked textures (but render via glsl).

{F207734}
{F207735}

Example: {F275180}
Original author: @valentin_b4w

Regards,
Alexander (Blend4Web Team).

Reviewers: sergey, valentin_b4w, brecht, merwin

Reviewed By: merwin

Subscribers: campbellbarton, merwin, blueprintrandom, youle, a.romanov, yurikovelenov, AlexKowel, Evgeny_Rodygin

Projects: #rendering, #opengl_gfx, #bf_blender:_next

Differential Revision: https://developer.blender.org/D1414
21 files changed:
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/intern/image.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_view3d/drawmesh.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/gpu/GPU_draw.h
source/blender/gpu/GPU_extensions.h
source/blender/gpu/GPU_material.h
source/blender/gpu/GPU_texture.h
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_codegen.h
source/blender/gpu/intern/gpu_draw.c
source/blender/gpu/intern/gpu_extensions.c
source/blender/gpu/intern/gpu_material.c
source/blender/gpu/intern/gpu_texture.c
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/makesdna/DNA_image_types.h
source/blender/makesrna/intern/rna_image_api.c
source/blender/python/intern/gpu.c
source/gameengine/Ketsji/BL_Texture.cpp
source/gameengine/VideoTexture/Texture.cpp