Fix bug with rendering video layer

This commit is contained in:
Ylva Selling
2022-10-04 12:06:08 -04:00
parent 03a8e58955
commit fa30188e44
2 changed files with 3 additions and 0 deletions

View File

@@ -165,6 +165,8 @@ vec4 getSample#{layerGroup}#{i}(vec2 uv, vec3 levelWeights,
c.rgb = #{layerGroup}[#{i}].color;
#elif (#{#{layerGroup}#{i}LayerType} == 9) // SpoutImageTileLayer
c = getTexVal(#{layerGroup}[#{i}].pile, levelWeights, uv, #{layerGroup}[#{i}].padding);
#elif (#{#{layerGroup}#{i}LayerType} == 10) // FfmpegTileProvider
c = getTexVal(#{layerGroup}[#{i}].pile, levelWeights, uv, #{layerGroup}[#{i}].padding);
#endif
return c;

View File

@@ -57,6 +57,7 @@ namespace openspace::globebrowsing {
namespace openspace::globebrowsing {
// If you add a new type, also add it to shaders/texturetilemapping.glsl
enum class Type {
DefaultTileProvider = 0,
SingleImageTileProvider,