Merge branch 'master' into blender2.8
This commit is contained in:
@@ -779,7 +779,7 @@ static void shade_light_textures(GPUMaterial *mat, GPULamp *lamp, GPUNodeLink **
|
||||
for (int i = 0; i < MAX_MTEX; ++i) {
|
||||
MTex *mtex = lamp->la->mtex[i];
|
||||
|
||||
if (mtex && mtex->tex->type & TEX_IMAGE && mtex->tex->ima) {
|
||||
if (mtex && mtex->tex && (mtex->tex->type & TEX_IMAGE) && mtex->tex->ima) {
|
||||
mat->dynproperty |= DYN_LAMP_PERSMAT;
|
||||
|
||||
float one = 1.0f;
|
||||
|
||||
@@ -2705,7 +2705,7 @@ void node_geometry(
|
||||
|
||||
parametric = vec3(0.0);
|
||||
backfacing = (gl_FrontFacing) ? 0.0 : 1.0;
|
||||
pointiness = 0.0;
|
||||
pointiness = 0.5;
|
||||
}
|
||||
|
||||
void node_tex_coord(
|
||||
|
||||
Reference in New Issue
Block a user