light modifier

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

light modifier

Postby Ian » Mon May 09, 2016 9:38 am

Writing here so I can fix it later :p

Code: Select all
void __thiscall PRO_Polygon::SetLightModifier(PRO_Polygon *this, float a2)
{
  signed int v2; // [sp+10h] [bp-4h]@1

  v2 = (signed __int64)(32.0 - a2 * 32.0);
  if ( !v2 )
    v2 = 1;
  if ( v2 == 32 )
    LOBYTE(v2) = 31;
  *((_DWORD *)this + 6) = ((v2 & 0x1F) << 11) | *((_DWORD *)this + 6) & 0xFFFF07FF;
  if ( *((_DWORD *)this + 12) )
    PRO_Polygon::SetLightModifier(*((PRO_Polygon **)this + 12), a2);
}
Ian
 
Posts: 1646
Joined: Tue Feb 23, 2016 9:23 am

Re: light modifier

Postby Jiterdomer » Tue May 10, 2016 1:15 am

What is that for? Is it for Specular Lighting?
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 527
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 4 guests

cron