« first day (3768 days earlier)
← previous day
next day →
last day (1259 days later) »
Ahmed Saleh
2:35 PM
Hi,
I have tried this piece of loop in GLSL it does work, but it doesn't work in HLSL Unity
for (int index = 1; index <= m; index++)
{
zed += exp(0.5 * float(i * i) / float(m * m)) * z[i - 1];
zed /= 2.506628274631000502415765284811 * float(m);
}
sorry i == index
a mistake in the edit
user92578
"doesn't work" is a bad issue description. Errors, doesn't compile, doesn't result in correct output?
Ahmed Saleh
not correct output at all
tried to divide and conquer it
remove each line still don't know where is the problem
user92578
And what should the code do?
Ahmed Saleh
calcualte gaussian of previous textures (z-1)
user92578
2:51 PM
And what is
z
?
Ahmed Saleh
index
array of textures
user92578
So are you trying to multiply a texture with a float?
Ahmed Saleh
yes
the result of tex2d
sample
user92578
Is it a texture or a sample?
Ahmed Saleh
3:09 PM
sample of a texture
sorry
« first day (3768 days earlier)
← previous day
next day →
last day (1259 days later) »
all rooms
Transcript for
Nov
27
Nov '20
28
Nov
30
Game Development
Game development and other polite discussion. Game development...
3
game-design
game-industry
rubber-ducks
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile