class CrShader::Language::Types::SamplerCube

Overview

Cubemap texture sampler reference (samplerCube).

Defined in:

crshader/language/types.cr

Instance Method Summary

Instance Method Detail

def sample(dir : Vec3) : Vec4 #

Samples the cubemap in direction dir.


def sample_lod(dir : Vec3, lod : Float32) : Vec4 #

Samples the cubemap at explicit mipmap level lod.