Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

0x03B4C61D

orangemittens edited this page Jul 20, 2014 · 3 revisions

#LITE This is an RCOL chunk. Note that the following information is largely that which has been retained from the Sims 3 LITE resource. It remains to be seen how much of this information will hold true in Sims 4

##Format

 DWORD	// 'LITE'
 DWORD	// version
 DWORD
 BYTE Count128
 BYTE Count56
 SHORT
 
 --repetition Count128 128-byte Section:
 	DWORD Light type	// Type of light
 	FLOAT[3] Transform	// XYZ Position of light
 	FLOAT[3] Color    	// Diffuse color of light(RGB)
 	FLOAT    Intensity	// affects decay (how far the light reaches) rather than apparent brightness at source
 	--insert light type dependent data, to remainder of 31 floats
 
 --repetition Count56 56-byte Section:
 	DWORD Occluder Type	// Type of occluder
 	FLOAT[3] Origin
 	FLOAT[3] Normal
 	FLOAT[3] XAxis
 	FLOAT[3] YAxis
 	FLOAT    PairOffset

##128-byte Sections ###Light Types

Type Name
0x00000001 Ambient (unused)
0x00000002 Directional (unused)
0x00000003 Point
0x00000004 Spot
0x00000005 LampShade
0x00000006 TubeLight
0x00000007 Square Window
0x00000008 CircularWindow
0x00000009 SquareAreaLight
0x0000000A DiscAreaLight
0x0000000B WorldLight

###Light Type dependent data ####Point

 FLOAT[24]         	// No additional parameters

####Spot

 FLOAT[3] At          	// 3D vector for the direction of the light
 FLOAT    FalloffAngle	// In degrees
 FLOAT    BlurScale
 FLOAT[19]

####LampShade

 FLOAT[3] At          	// 3D vector for the direction of the light
 FLOAT    FalloffAngle	// In degrees
 FLOAT    ShadeLightRigMultiplier
 FLOAT    BottomAngle	// In degrees
 FLOAT[3] ShadeColor	// RGB
 FLOAT[16]

####TubeLight

 FLOAT[3] At          	// 3D vector for the direction of the light
 FLOAT    TubeLength
 FLOAT    BlurScale
 FLOAT[19]

####SquareAreaLight Also used for SquareWindow.

 FLOAT[3] At          	// 3D vector for the direction of the light
 FLOAT[3] Right       	// 3D vector
 FLOAT    Width
 FLOAT    Height
 FLOAT    FalloffAngle	// In degrees
 FLOAT    WindowTopBottomAngle
 FLOAT[14]

####DiscAreaLight Also used for CircularWindow.

 FLOAT[3] At          	// 3D vector for the direction of the light
 FLOAT[3] Right       	// 3D vector
 FLOAT    Radius
 FLOAT[17]

####WorldLight

 FLOAT[24]          	// No additional parameters

##56-byte Sections ###Occluder Types

Type Name
0x00000000 Disc
0x00000001 Rectangle
Controls the shape of the shadow thrown by the object.
Clone this wiki locally