@@ -110,28 +110,34 @@ public static string LogInstances(LightBaker.BakeInput bakeInput, SourceMap map)
110110 else
111111 message += $ " Instance [{ i } ] [{ LookupGameObjectName ( map , i ) } ]:\n ";
112112 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 ";
114114 if ( instance . meshType == LightBaker . MeshType . MeshRenderer )
115- message += $ " mesh index\t : { instance . meshIndex } \n ";
115+ message += $ " mesh index\t \t \t : { instance . meshIndex } \n ";
116116 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 ";
123123 message += $ " receive shadows\t : { instance . receiveShadows } \n ";
124124 if ( instance . meshType == LightBaker . MeshType . MeshRenderer )
125125 {
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 ";
129129 }
130- message += $ " submesh count\t : { instance . submeshMaterialIndices . Length } \n ";
130+ message += $ " submesh count\t \t : { instance . submeshMaterialIndices . Length } \n ";
131131 string indices = string . Empty ;
132132 for ( int j = 0 ; j < instance . submeshMaterialIndices . Length ; ++ j )
133133 indices += instance . submeshMaterialIndices [ j ] + ( j < ( instance . submeshMaterialIndices . Length - 1 ) ? ", " : "" ) ;
134134 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 ";
135141 }
136142 return message ;
137143 }
@@ -141,13 +147,13 @@ public static string LogSceneMaterials(LightBaker.BakeInput bakeInput)
141147 if ( bakeInput is null )
142148 return string . Empty ;
143149 string message = string . Empty ;
144- message += $ " material count\t : { bakeInput . materialCount } \n ";
150+ message += $ " material count\t \t : { bakeInput . materialCount } \n ";
145151 for ( int i = 0 ; i < bakeInput . materialCount ; ++ i )
146152 {
147153 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 ";
149155 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 ";
151157 }
152158 return message ;
153159 }
@@ -181,22 +187,22 @@ public static string LogSceneLights(LightBaker.BakeInput bakeInput)
181187 {
182188 LightBaker . Light light = bakeInput . GetLight ( ( uint ) i ) ;
183189 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 ";
192198 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 ";
198204 message += $ " angular falloff\t : { light . angularFalloff } \n ";
199- message += $ " casts shadows\t : { light . castsShadows } \n ";
205+ message += $ " casts shadows\t \t : { light . castsShadows } \n ";
200206 message += $ " shadowmask chnl\t : { light . shadowMaskChannel } \n ";
201207 }
202208 return message ;
@@ -222,12 +228,12 @@ public static string LogSceneSettings(LightBaker.BakeInput bakeInput)
222228 message += LogSampleCounts ( lightingSettings . lightmapSampleCounts ) ;
223229 message += $ " lightprobe sample counts:\n ";
224230 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 ";
227233 message += $ " lightmap bake mode\t : { lightingSettings . lightmapBakeMode } \n ";
228234 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 ";
231237 return message ;
232238 }
233239
@@ -238,10 +244,10 @@ public static string LogScene(LightBaker.BakeInput bakeInput, LightBaker.Lightma
238244 string message = string . Empty ;
239245 message += LogSceneSettings ( bakeInput ) ;
240246 message += LogInstances ( bakeInput , map ) ;
241- message += $ " mesh count\t \t : { bakeInput . meshCount } \n ";
247+ message += $ " mesh count\t \t \t : { bakeInput . meshCount } \n ";
242248 message += $ " terrain count\t \t : { bakeInput . terrainCount } \n ";
243249 message += $ " heightmap count\t : { bakeInput . heightmapCount } \n ";
244- message += $ " holemap count\t : { bakeInput . holemapCount } \n ";
250+ message += $ " holemap count\t \t : { bakeInput . holemapCount } \n ";
245251 message += LogSceneMaterials ( bakeInput ) ;
246252 message += $ " albedo tex count\t : { bakeInput . albedoTextureCount } \n ";
247253 for ( int i = 0 ; i < bakeInput . albedoTextureCount ; ++ i )
0 commit comments