mirror of
https://github.com/MapMakersAndProgrammers/Alternativa3D.git
synced 2025-10-26 18:09:14 -07:00
:)
This commit is contained in:
@@ -1071,8 +1071,8 @@ package alternativa.engine3d.materials {
|
|||||||
drawUnit = getDrawUnit(program, camera, surface, geometry, opacityMap, null, 0, true, null, false, true, objectRenderPriority);
|
drawUnit = getDrawUnit(program, camera, surface, geometry, opacityMap, null, 0, true, null, false, true, objectRenderPriority);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
var j:int;
|
||||||
var lightLengthInGroup:int;
|
var lightLengthInGroup:int;
|
||||||
var isFirstGroup:Boolean = true;
|
var isFirstGroup:Boolean = true;
|
||||||
for (i = 0; i < groupsCount; i++) {
|
for (i = 0; i < groupsCount; i++) {
|
||||||
@@ -1086,7 +1086,7 @@ package alternativa.engine3d.materials {
|
|||||||
(_normalMapSpace.toString()) +
|
(_normalMapSpace.toString()) +
|
||||||
((glossinessMap != null) ? "G" : "g") +
|
((glossinessMap != null) ? "G" : "g") +
|
||||||
((specularMap != null) ? "S" : "s");
|
((specularMap != null) ? "S" : "s");
|
||||||
for (var j:int = 0; j < lightLengthInGroup; j++) {
|
for (j = 0; j < lightLengthInGroup; j++) {
|
||||||
light = lightGroup[j];
|
light = lightGroup[j];
|
||||||
materialKey += light.lightID;
|
materialKey += light.lightID;
|
||||||
}
|
}
|
||||||
@@ -1125,7 +1125,7 @@ package alternativa.engine3d.materials {
|
|||||||
if (shadowGroupLength>0){
|
if (shadowGroupLength>0){
|
||||||
// Group of ligths with shadow
|
// Group of ligths with shadow
|
||||||
// For each light we will create new drawUnit
|
// For each light we will create new drawUnit
|
||||||
for (var j:int = 0; j < shadowGroupLength; j++) {
|
for (j = 0; j < shadowGroupLength; j++) {
|
||||||
|
|
||||||
light = shadowGroup[j];
|
light = shadowGroup[j];
|
||||||
// Form key
|
// Form key
|
||||||
|
|||||||
Reference in New Issue
Block a user