Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::TextureCoordinatesTransform Struct Reference

Material property defining texture coordinates set transformation. More...

#include <OxygenEngine/scene/material.h>

Public Attributes

glm::vec2 tiling = glm::vec2(1.f)
 Apply a tiling to the texture UV.
 
glm::vec2 offset = glm::vec2(0.f)
 Apply an offset to the texture UV.
 

Detailed Description

Material property defining texture coordinates set transformation.

Defines how the UV coordinates provided by the vertex should be modified

Member Data Documentation

◆ offset

glm::vec2 oe::scene::TextureCoordinatesTransform::offset = glm::vec2(0.f)

Apply an offset to the texture UV.

Note
Example effect: if moved with time, conveyor or waterfall

◆ tiling

glm::vec2 oe::scene::TextureCoordinatesTransform::tiling = glm::vec2(1.f)

Apply a tiling to the texture UV.

Note
Example effect: if moved with time, zoom-in / zoom-out texture

Greater values lead to the effect of the texture being smaller


The documentation for this struct was generated from the following file: