R2 Core Shaders

Functions
R2CubeMaps.h File Reference

Functions for dealing with cube maps. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
vec4 | R2_cubeMapTextureRH (const samplerCube t, const vec3 v)

## Detailed Description

Functions for dealing with cube maps.

Definition in file R2CubeMaps.h.

## Function Documentation

## § R2_cubeMapTextureRH()

vec4 R2_cubeMapTextureRH | ( | const samplerCube | t,
|  | const vec3 | v
| ) |  |

Sample from a right-handed cube map t using the world-space vector v.

Parameters

  t | A right-handed cube map
  v | A world-space direction vector

Definition at line 15 of file R2CubeMaps.h.

18 {
19 return textureCube (t, vec3 (
20 v.x,
21 0.0 - v.y,
22 0.0 - v.z
23 ));
24 }