Function glm::builtin::step_s [] [src]

pub fn step_s<F: BaseFloat, T: GenFloatVec<F>>(edge: F, x: T) -> T

A variant of step function that use scalar as the edge.

Note

step_s is not a GLSL function name.

Example

use glm::{ step_s, vec3 };

assert_eq!(step_s(0_f32, vec3(-1., 0., 1.)), vec3(0., 1., 1.));