Searched refs:n_dot_i (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 602 nir_ssa_def *n_dot_i = nir_fdot(nb, N, I); in handle_glsl450_alu() local 608 nir_fsub(nb, one, nir_fmul(nb, n_dot_i, n_dot_i))))); in handle_glsl450_alu() 611 nir_fmul(nb, nir_fadd(nb, nir_fmul(nb, eta, n_dot_i), in handle_glsl450_alu()
|
/external/mesa3d/src/compiler/glsl/ |
D | builtin_functions.cpp | 4546 ir_variable *n_dot_i = body.make_temp(type->get_base_type(), "n_dot_i"); in _refract() local 4547 body.emit(assign(n_dot_i, dot(N, I))); in _refract() 4559 mul(n_dot_i, n_dot_i))))))); in _refract() 4563 mul(add(mul(eta, n_dot_i), sqrt(k)), N))))); in _refract()
|