Home
last modified time | relevance | path

Searched refs:n_dot_i (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c425 nir_ssa_def *n_dot_i = nir_fdot(nb, N, I); in handle_glsl450_alu() local
445 nir_fsub(nb, one, nir_fmul(nb, n_dot_i, n_dot_i))))); in handle_glsl450_alu()
448 nir_fmul(nb, nir_fadd(nb, nir_fmul(nb, eta, n_dot_i), in handle_glsl450_alu()
/external/mesa3d/src/compiler/glsl/
Dbuiltin_functions.cpp5903 ir_variable *n_dot_i = body.make_temp(type->get_base_type(), "n_dot_i"); in _refract() local
5904 body.emit(assign(n_dot_i, dot(N, I))); in _refract()
5916 mul(n_dot_i, n_dot_i))))))); in _refract()
5920 mul(add(mul(eta, n_dot_i), sqrt(k)), N))))); in _refract()