« first day (3768 days earlier)      last day (1259 days later) » 

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?
 
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?
 
calcualte gaussian of previous textures (z-1)
 
user92578
2:51 PM
And what is z?
 
index
array of textures
 
user92578
So are you trying to multiply a texture with a float?
 
yes
the result of tex2d
sample
 
user92578
Is it a texture or a sample?
 
3:09 PM
sample of a texture
sorry
 

« first day (3768 days earlier)      last day (1259 days later) »