class
CrShader::Language::Types::Sampler2D
- CrShader::Language::Types::Sampler2D
- Reference
- Object
Overview
2D texture sampler reference (sampler2D).
Defined in:
crshader/language/types.crInstance Method Summary
-
#fetch(coord : IVec2, lod : Int32 = 0) : Vec4
Fetches texel at integer pixel coordinates without bilinear filtering.
-
#sample(uv : Vec2) : Vec4
Samples the texture at normalized coordinates
uv, returning an RGBA vector. -
#sample_lod(uv : Vec2, lod : Float32) : Vec4
Samples the texture at explicit mipmap level of detail
lod. -
#size(lod : Int32 = 0) : IVec2
Returns dimensions of the texture at mipmap level
lodasivec2(width, height).
Instance Method Detail
Fetches texel at integer pixel coordinates without bilinear filtering.
Samples the texture at normalized coordinates uv, returning an RGBA vector.
Samples the texture at explicit mipmap level of detail lod.