tall-teacher-57409
05/05/2023, 7:56 AMtall-teacher-57409
05/05/2023, 9:51 AMhallowed-ocean-84954
05/05/2023, 1:27 PMhallowed-ocean-84954
05/05/2023, 1:27 PMtall-teacher-57409
05/05/2023, 1:38 PMtall-teacher-57409
05/05/2023, 1:41 PMhallowed-ocean-84954
05/05/2023, 1:42 PMtall-teacher-57409
05/05/2023, 8:47 PM(sin(timeValue) / 2.0f) + 0.5f;
, how does that make sense? (I know what sine is but uhm im so dumb to understand why)
https://cdn.discordapp.com/attachments/769686258049351722/1104147456469512212/image.png▾
bulky-insurance-39338
05/05/2023, 8:50 PMbulky-insurance-39338
05/05/2023, 8:51 PMbulky-insurance-39338
05/05/2023, 8:52 PMuniform
to access its value per shader globally like )bulky-insurance-39338
05/05/2023, 8:55 PMuniform
for the Time itself, so you can calculate some "movement" or colorchanging by glsl inside shader directly ( e.g. the sin(time) to let color blinking or somewhat else )tall-teacher-57409
05/05/2023, 8:57 PMsin
, why divide by two, and why add +0.5, I just want to get the math concept behind ithallowed-ocean-84954
05/05/2023, 8:59 PMbulky-insurance-39338
05/05/2023, 8:59 PMsin(x)
goes from -1.0 to 1.0hallowed-ocean-84954
05/05/2023, 9:00 PMbulky-insurance-39338
05/05/2023, 9:01 PMhttps://cdn.discordapp.com/attachments/769686258049351722/1104150822398472243/380px-Sine_cosine_one_period.svg.png▾
tall-teacher-57409
05/05/2023, 9:04 PMtall-teacher-57409
05/05/2023, 9:07 PMhallowed-ocean-84954
05/05/2023, 9:09 PMbulky-insurance-39338
05/05/2023, 9:14 PMbright-gpu-74537
05/05/2023, 10:28 PMbulky-insurance-39338
05/05/2023, 10:31 PMbright-gpu-74537
05/05/2023, 10:36 PMbulky-insurance-39338
05/05/2023, 10:37 PMbright-gpu-74537
05/05/2023, 10:56 PMbulky-insurance-39338
05/05/2023, 10:58 PMcurve
-drawed) patchesbright-gpu-74537
05/05/2023, 10:59 PM