@@ -110,28 +110,34 @@ public static string LogInstances(LightBaker.BakeInput bakeInput, SourceMap map)
110
110
else
111
111
message += $ " Instance [{ i } ] [{ LookupGameObjectName ( map , i ) } ]:\n ";
112
112
LightBaker . Instance instance = bakeInput . instance ( ( uint ) i ) ;
113
- message += $ " mesh type\t \t : { instance . meshType } \n ";
113
+ message += $ " mesh type\t \t \t : { instance . meshType } \n ";
114
114
if ( instance . meshType == LightBaker . MeshType . MeshRenderer )
115
- message += $ " mesh index\t : { instance . meshIndex } \n ";
115
+ message += $ " mesh index\t \t \t : { instance . meshIndex } \n ";
116
116
else if ( instance . meshType == LightBaker . MeshType . Terrain )
117
- message += $ " terrain index\t : { instance . terrainIndex } \n ";
118
- message += $ " transform\t \t : { instance . transform . GetRow ( 0 ) } \n ";
119
- message += $ " \t \t : { instance . transform . GetRow ( 1 ) } \n ";
120
- message += $ " \t \t : { instance . transform . GetRow ( 2 ) } \n ";
121
- message += $ " \t \t : { instance . transform . GetRow ( 3 ) } \n ";
122
- message += $ " cast shadows\t : { instance . castShadows } \n ";
117
+ message += $ " terrain index\t \t : { instance . terrainIndex } \n ";
118
+ message += $ " transform\t \t \t : { instance . transform . GetRow ( 0 ) } \n ";
119
+ message += $ " \t \t \t : { instance . transform . GetRow ( 1 ) } \n ";
120
+ message += $ " \t \t \t : { instance . transform . GetRow ( 2 ) } \n ";
121
+ message += $ " \t \t \t : { instance . transform . GetRow ( 3 ) } \n ";
122
+ message += $ " cast shadows\t \t : { instance . castShadows } \n ";
123
123
message += $ " receive shadows\t : { instance . receiveShadows } \n ";
124
124
if ( instance . meshType == LightBaker . MeshType . MeshRenderer )
125
125
{
126
- message += $ " odd negative scale\t : { instance . oddNegativeScale } \n ";
127
- message += $ " lod group\t \t : { instance . lodGroup } \n ";
128
- message += $ " lod mask\t \t : { instance . lodMask } \n ";
126
+ message += $ " odd neg scale\t \t : { instance . oddNegativeScale } \n ";
127
+ message += $ " lod group\t \t \t : { instance . lodGroup } \n ";
128
+ message += $ " lod mask\t \t \t \t : { instance . lodMask } \n ";
129
129
}
130
- message += $ " submesh count\t : { instance . submeshMaterialIndices . Length } \n ";
130
+ message += $ " submesh count\t \t : { instance . submeshMaterialIndices . Length } \n ";
131
131
string indices = string . Empty ;
132
132
for ( int j = 0 ; j < instance . submeshMaterialIndices . Length ; ++ j )
133
133
indices += instance . submeshMaterialIndices [ j ] + ( j < ( instance . submeshMaterialIndices . Length - 1 ) ? ", " : "" ) ;
134
134
message += $ " submesh mat idxs\t : {{{indices}}}\n ";
135
+ message += $ " albedo tex idx\t \t : { bakeInput . instanceToAlbedoIndex ( ( uint ) i ) } \n ";
136
+ message += $ " emissive tex idx\t : { bakeInput . instanceToEmissiveIndex ( ( uint ) i ) } \n ";
137
+ string transmissiveIndices = string . Empty ;
138
+ for ( int j = 0 ; j < instance . submeshMaterialIndices . Length ; ++ j )
139
+ transmissiveIndices += bakeInput . instanceToTransmissiveIndex ( ( uint ) i , ( uint ) j ) + ( j < ( instance . submeshMaterialIndices . Length - 1 ) ? ", " : "" ) ;
140
+ message += $ " trans tex idxs\t \t : {{{transmissiveIndices}}}\n ";
135
141
}
136
142
return message ;
137
143
}
@@ -141,13 +147,13 @@ public static string LogSceneMaterials(LightBaker.BakeInput bakeInput)
141
147
if ( bakeInput is null )
142
148
return string . Empty ;
143
149
string message = string . Empty ;
144
- message += $ " material count\t : { bakeInput . materialCount } \n ";
150
+ message += $ " material count\t \t : { bakeInput . materialCount } \n ";
145
151
for ( int i = 0 ; i < bakeInput . materialCount ; ++ i )
146
152
{
147
153
message += $ " Material [{ i } ]:\n ";
148
- message += $ " doubleSidedGI\t : { bakeInput . GetMaterial ( ( uint ) i ) . doubleSidedGI } \n ";
154
+ message += $ " doubleSidedGI\t \t \t : { bakeInput . GetMaterial ( ( uint ) i ) . doubleSidedGI } \n ";
149
155
message += $ " transmissionChannels\t : { bakeInput . GetMaterial ( ( uint ) i ) . transmissionChannels } \n ";
150
- message += $ " transmissionType\t : { bakeInput . GetMaterial ( ( uint ) i ) . transmissionType } \n ";
156
+ message += $ " transmissionType\t \t : { bakeInput . GetMaterial ( ( uint ) i ) . transmissionType } \n ";
151
157
}
152
158
return message ;
153
159
}
@@ -181,22 +187,22 @@ public static string LogSceneLights(LightBaker.BakeInput bakeInput)
181
187
{
182
188
LightBaker . Light light = bakeInput . GetLight ( ( uint ) i ) ;
183
189
message += $ " Light [{ i } ]:\n ";
184
- message += $ " color\t \t : { light . color } \n ";
185
- message += $ " indirect color\t : { light . indirectColor } \n ";
186
- message += $ " orientation\t : { light . orientation } \n ";
187
- message += $ " position\t \t : { light . position } \n ";
188
- message += $ " range\t \t : { light . range } \n ";
189
- message += $ " cookie index\t : { light . cookieTextureIndex } \n ";
190
- message += $ " cookie scale\t : { light . cookieScale } \n ";
191
- message += $ " cone angle\t : { light . coneAngle } \n ";
190
+ message += $ " color\t \t \t \t \t : { light . color } \n ";
191
+ message += $ " indirect color\t \t : { light . indirectColor } \n ";
192
+ message += $ " orientation\t \t \t : { light . orientation } \n ";
193
+ message += $ " position\t \t \t \t : { light . position } \n ";
194
+ message += $ " range\t \t \t \t \t : { light . range } \n ";
195
+ message += $ " cookie index\t \t : { light . cookieTextureIndex } \n ";
196
+ message += $ " cookie scale\t \t : { light . cookieScale } \n ";
197
+ message += $ " cone angle\t \t \t : { light . coneAngle } \n ";
192
198
message += $ " inner cone angle\t : { light . innerConeAngle } \n ";
193
- message += $ " shape0\t \t : { light . shape0 } \n ";
194
- message += $ " shape1\t \t : { light . shape1 } \n ";
195
- message += $ " type\t \t : { light . type } \n ";
196
- message += $ " mode\t \t : { light . mode } \n ";
197
- message += $ " falloff\t \t : { light . falloff } \n ";
199
+ message += $ " shape0\t \t \t \t : { light . shape0 } \n ";
200
+ message += $ " shape1\t \t \t \t : { light . shape1 } \n ";
201
+ message += $ " type\t \t \t \t \t : { light . type } \n ";
202
+ message += $ " mode\t \t \t \t \t : { light . mode } \n ";
203
+ message += $ " falloff\t \t \t \t : { light . falloff } \n ";
198
204
message += $ " angular falloff\t : { light . angularFalloff } \n ";
199
- message += $ " casts shadows\t : { light . castsShadows } \n ";
205
+ message += $ " casts shadows\t \t : { light . castsShadows } \n ";
200
206
message += $ " shadowmask chnl\t : { light . shadowMaskChannel } \n ";
201
207
}
202
208
return message ;
@@ -222,12 +228,12 @@ public static string LogSceneSettings(LightBaker.BakeInput bakeInput)
222
228
message += LogSampleCounts ( lightingSettings . lightmapSampleCounts ) ;
223
229
message += $ " lightprobe sample counts:\n ";
224
230
message += LogSampleCounts ( lightingSettings . probeSampleCounts ) ;
225
- message += $ " min bounces\t : { lightingSettings . minBounces } \n ";
226
- message += $ " max bounces\t : { lightingSettings . maxBounces } \n ";
231
+ message += $ " min bounces\t \t \t \t : { lightingSettings . minBounces } \n ";
232
+ message += $ " max bounces\t \t \t \t : { lightingSettings . maxBounces } \n ";
227
233
message += $ " lightmap bake mode\t : { lightingSettings . lightmapBakeMode } \n ";
228
234
message += $ " mixed lighting mode\t : { lightingSettings . mixedLightingMode } \n ";
229
- message += $ " ao enabled\t \t : { lightingSettings . aoEnabled } \n ";
230
- message += $ " ao distance\t \t : { lightingSettings . aoDistance } \n ";
235
+ message += $ " ao enabled\t \t \t \t : { lightingSettings . aoEnabled } \n ";
236
+ message += $ " ao distance\t \t \t \t : { lightingSettings . aoDistance } \n ";
231
237
return message ;
232
238
}
233
239
@@ -238,10 +244,10 @@ public static string LogScene(LightBaker.BakeInput bakeInput, LightBaker.Lightma
238
244
string message = string . Empty ;
239
245
message += LogSceneSettings ( bakeInput ) ;
240
246
message += LogInstances ( bakeInput , map ) ;
241
- message += $ " mesh count\t \t : { bakeInput . meshCount } \n ";
247
+ message += $ " mesh count\t \t \t : { bakeInput . meshCount } \n ";
242
248
message += $ " terrain count\t \t : { bakeInput . terrainCount } \n ";
243
249
message += $ " heightmap count\t : { bakeInput . heightmapCount } \n ";
244
- message += $ " holemap count\t : { bakeInput . holemapCount } \n ";
250
+ message += $ " holemap count\t \t : { bakeInput . holemapCount } \n ";
245
251
message += LogSceneMaterials ( bakeInput ) ;
246
252
message += $ " albedo tex count\t : { bakeInput . albedoTextureCount } \n ";
247
253
for ( int i = 0 ; i < bakeInput . albedoTextureCount ; ++ i )
0 commit comments