Rivoreo Source Code Repositories
src.rivoreo.one
/
glowstone
/
c72142bb23799d6904d89d38b717c8beb6cb8122
/
.
/
src
/
main
/
resources
/
builtin
/
opencl
/
net
/
glowstone
/
CLRandom.cl
blob: 5918e13de3419c68e67b5bc160de331f5ceda5d5 [
file
] [
log
] [
blame
] [
raw
]
kernel void GenerateNoise
(
float base
,
float fine
,
global float
*
rands
,
int length
)
{
int gid
=
get_global_id
(
0
)
;
if
(
gid
>=
length
)
{
return
;
}
rands
[
gid
]
=
base
*
gid
+
fine
/
(
base
+
gid
)
+
1
/
gid
;
}