Function generateSamplePointsCube
- generateSamplePointsCube(n, args): {
arrayIndex?: number;
bias?: number;
component?: number;
coords: vec3;
ddx?: vec3;
ddy?: vec3;
depthRef?: number;
derivativeMult?: vec3;
mipLevel: number;
offset?: undefined;
}[] Parameters
n: number
args: TextureBuiltinInputArgs & {
method: "texel-centre";
} | TextureBuiltinInputArgs & {
loops?: number;
method: "spiral";
radius?: number;
} | TextureBuiltinInputArgs & {
method: "cube-edges";
}
Returns {
arrayIndex?: number;
bias?: number;
component?: number;
coords: vec3;
ddx?: vec3;
ddy?: vec3;
depthRef?: number;
derivativeMult?: vec3;
mipLevel: number;
offset?: undefined;
}[]
Generates an array of coordinates at which to sample a texture for a cubemap