Searched refs:RAND_0_1 (Results 1 – 9 of 9) sorted by relevance
/dports/games/sea-defender/Sea-Defender-d628051/ |
H A D | pe_bubble_expl.cpp | 32 p.cur_pos = m_pos + vec2(RAND_0_1 * 0.005f,RAND_0_1 * 0.005f); in emit_single_particle() 33 p.cur_speed = vec2(0.01+RAND_0_1*0.04,0.01+RAND_0_1*0.04); in emit_single_particle() 34 p.cur_vector = normalized(vec2((RAND_0_1*2.0-1.0),(RAND_0_1*2.0-1.0))); in emit_single_particle()
|
H A D | pe_bubbles.cpp | 16 p.cur_pos += (p.cur_speed + (RAND_0_1-0.5)*0.1) * delta_t; in update_single_particle() 42 p.cur_pos = m_pos + vec2(RAND_0_1 * 0.01f,RAND_0_1 * 0.01f); in emit_single_particle() 43 p.cur_speed = vec2((-0.01+RAND_0_1*0.02),-0.1); in emit_single_particle() 47 p.user_data = vec4(RAND_0_1,0,0,0); in emit_single_particle()
|
H A D | background.cpp | 176 float color = RAND_0_1 * 0.25f + 0.75f; in Clouds() 177 float speed = RAND_0_1 * 60.0f + 60.0f; in Clouds() 178 float height = RAND_0_1 * 0.12f - 0.05f; in Clouds() 179 float scale = (RAND_0_1 * 0.5f + 0.2f) * 0.25f; in Clouds() 183 float tex_u0 = t_step * floor(RAND_0_1 * m_num_tex_row); in Clouds() 184 float tex_v0 = t_step * floor(RAND_0_1 * m_num_tex_row); in Clouds() 331 float scale = RAND_0_1 * 0.22f + 0.21f; in draw_random_cloud() 332 float trans_x = RAND_0_1 * 0.01f; in draw_random_cloud() 333 float trans_y = RAND_0_1 * 0.01f; in draw_random_cloud()
|
H A D | pe_smoke.cpp | 40 p.cur_pos = m_pos + vec2(RAND_0_1 * 0.02f,RAND_0_1 * 0.01f); in emit_single_particle() 41 p.cur_speed = vec2((-0.02+RAND_0_1*0.04),-0.1); in emit_single_particle()
|
H A D | pe_torpedo_expl.cpp | 39 p.cur_pos = lerp(RAND_0_1,m_p1,m_p2) + vec2(RAND_0_1 * 0.002f, RAND_0_1 * 0.002f); in emit_single_particle()
|
H A D | pe_smoketrail.cpp | 33 p.cur_pos = m_pos + vec2(RAND_0_1 * 0.005f,RAND_0_1 * 0.005f); in emit_single_particle() 34 p.cur_size = 0.01 + RAND_0_1 * 0.01; in emit_single_particle()
|
H A D | boat.cpp | 53 m_bbl_emitpos_x[i] = ((float)i/m_num_bubble_streams)+0.1-0.5 + (RAND_0_1 - 0.5)*0.175; in hit()
|
H A D | game.cpp | 64 vec2 pos(RAND_0_1 * 1.6,1.1); in spawn_torpedo()
|
/dports/games/sea-defender/Sea-Defender-d628051/snoutlib/ |
H A D | misc.h | 91 #define RAND_0_1 ((float)rand()/RAND_MAX) macro 99 return LERP(RAND_0_1,min,max); in rand_range()
|