Merged changes in the trunk up to revision 49090.
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
* \ingroup render
|
||||
*/
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -3419,7 +3418,7 @@ static void init_render_mesh(Render *re, ObjectRen *obr, int timeoffset)
|
||||
|
||||
ma= give_render_material(re, ob, a1+1);
|
||||
|
||||
/* test for 100% transparant */
|
||||
/* test for 100% transparent */
|
||||
ok= 1;
|
||||
if (ma->alpha==0.0f && ma->spectra==0.0f && ma->filter==0.0f && (ma->mode & MA_TRANSP) && (ma->mode & MA_RAYMIRROR)==0) {
|
||||
ok= 0;
|
||||
@@ -5555,7 +5554,7 @@ static int load_fluidsimspeedvectors(Render *re, ObjectInstanceRen *obi, float *
|
||||
camco[1] = dot_v3v3(imat[1], fsvec);
|
||||
camco[2] = dot_v3v3(imat[2], fsvec);
|
||||
|
||||
/* get homogenous coordinates */
|
||||
/* get homogeneous coordinates */
|
||||
projectvert(camco, winmat, hoco);
|
||||
projectvert(ver->co, winmat, ho);
|
||||
|
||||
|
||||
@@ -539,7 +539,7 @@ static void boxsample(ImBuf *ibuf, float minx, float miny, float maxx, float max
|
||||
*/
|
||||
/* note: actually minx etc isn't in the proper range... this due to filter size and offset vectors for bump */
|
||||
/* note: talpha must be initialized */
|
||||
/* note: even when 'imaprepeat' is set, this can only repeate once in any direction.
|
||||
/* note: even when 'imaprepeat' is set, this can only repeat once in any direction.
|
||||
* the point which min/max is derived from is assumed to be wrapped */
|
||||
TexResult texr;
|
||||
rctf *rf, stack[8];
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
* \ingroup render
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* Global includes */
|
||||
|
||||
#include <math.h>
|
||||
|
||||
@@ -1043,7 +1043,7 @@ static void QMC_initPixel(QMCSampler *qsa, int thread)
|
||||
}
|
||||
else { /* SAMP_TYPE_HALTON */
|
||||
|
||||
/* generate a new randomised halton sequence per pixel
|
||||
/* generate a new randomized halton sequence per pixel
|
||||
* to alleviate qmc artifacts and make it reproducible
|
||||
* between threads/frames */
|
||||
double ht_invprimes[2], ht_nums[2];
|
||||
|
||||
@@ -2985,7 +2985,7 @@ void do_sky_tex(const float rco[3], float lo[3], const float dxyview[2], float h
|
||||
}
|
||||
else {
|
||||
/* this value has no angle, the vector is directly along the view.
|
||||
* avoide divide by zero and use a dummy value. */
|
||||
* avoid divide by zero and use a dummy value. */
|
||||
tempvec[0]= 1.0f;
|
||||
tempvec[1]= 0.0;
|
||||
tempvec[2]= 0.0;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
* - If the entry has no block allocated for it yet, memory is
|
||||
* allocated.
|
||||
*
|
||||
* The pointer to the correct entry is returned. Memory is guarateed
|
||||
* The pointer to the correct entry is returned. Memory is guaranteed
|
||||
* to exist (as long as the malloc does not break). Since guarded
|
||||
* allocation is used, memory _must_ be available. Otherwise, an
|
||||
* exit(0) would occur.
|
||||
|
||||
@@ -1815,7 +1815,7 @@ static void isb_bsp_face_inside(ISBBranch *bspn, BSPFace *face)
|
||||
return;
|
||||
|
||||
/* if face boundbox is outside of branch rect, give up */
|
||||
if (0==BLI_isect_rctf((rctf *)&face->box, (rctf *)&bspn->box, NULL))
|
||||
if (0==BLI_rctf_isect((rctf *)&face->box, (rctf *)&bspn->box, NULL))
|
||||
return;
|
||||
|
||||
/* test all points inside branch */
|
||||
|
||||
@@ -360,7 +360,7 @@ static void ComputeAttenuatedSunlight(float theta, int turbidity, float fTau[3])
|
||||
* rayf, Rayleigh scattering factor, this factor currently call with 1.0
|
||||
* inscattf, inscatter light factor that range from 0.0 to 1.0, 0.0 means no inscatter light and 1.0 means full inscatter light
|
||||
* extincf, extinction light factor that range from 0.0 to 1.0, 0.0 means no extinction and 1.0 means full extinction
|
||||
* disf, is distance factor, multiplyed to pixle's z value to compute each pixle's distance to camera,
|
||||
* disf, is distance factor, multiplied to pixle's z value to compute each pixle's distance to camera,
|
||||
* */
|
||||
void InitAtmosphere(struct SunSky *sunSky, float sun_intens, float mief, float rayf,
|
||||
float inscattf, float extincf, float disf)
|
||||
|
||||
@@ -415,7 +415,7 @@ static void vol_get_transmittance_seg(ShadeInput *shi, float tr[3], float stepsi
|
||||
|
||||
vol_get_sigma_t(shi, sigma_t, co);
|
||||
|
||||
/* homogenous volume within the sampled distance */
|
||||
/* homogeneous volume within the sampled distance */
|
||||
tau[0] += stepd * sigma_t[0];
|
||||
tau[1] += stepd * sigma_t[1];
|
||||
tau[2] += stepd * sigma_t[2];
|
||||
|
||||
@@ -1626,7 +1626,7 @@ static void clippyra(float *labda, float *v1, float *v2, int *b2, int *b3, int a
|
||||
v13= clipcrop*v1[3];
|
||||
}
|
||||
/* according the original article by Liang&Barsky, for clipping of
|
||||
* homogenous coordinates with viewplane, the value of "0" is used instead of "-w" .
|
||||
* homogeneous coordinates with viewplane, the value of "0" is used instead of "-w" .
|
||||
* This differs from the other clipping cases (like left or top) and I considered
|
||||
* it to be not so 'homogenic'. But later it has proven to be an error,
|
||||
* who would have thought that of L&B!
|
||||
|
||||
Reference in New Issue
Block a user