Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Harmonikater
BF2-3dsMax-Tools
Commits
ab6e993c
Commit
ab6e993c
authored
Jul 13, 2021
by
Harmonikater
Browse files
Update scripts/bf2/general/conFileParse.ms
parent
fd9a0c8b
Pipeline
#7370
passed with stage
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/bf2/general/conFileParse.ms
View file @
ab6e993c
...
...
@@ -192,6 +192,11 @@ fn bf2parseConData_Sky fname worldSize:5120 s:10.0 areaShadows:False =
(
local scaleUp = 1.0
local sinAlpha = abs(lightDir[3])
local sunIntensity = 1.0 + 0.5 * sinAlpha
if (areaShadows) then
(
sunIntensity = 1.0
)
local cosAlpha = sqrt ( lightDir[1]^2 + lightDir[2]^2 )
local hMax = 0
if g_bf2_lightMappingTerrain != undefined do
...
...
@@ -205,7 +210,7 @@ fn bf2parseConData_Sky fname worldSize:5120 s:10.0 areaShadows:False =
local targLight = TargetDirectionallight pos:( -lightDir * worldSize * scaleUp + 20 ) target:(Targetobject transform:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])) \
rgb:(color 0 255 0) shadowColor:(color 0 0 0) hotspot:(worldSize * sqrt 2 + 20) falloff:(worldSize * sqrt 2 + 20) \
name:"_SunLight" castShadows:on multiplier:(
1+sinAlpha
)
name:"_SunLight" castShadows:on multiplier:(
sunIntensity
)
local shadows = Adv__Ray_traced shadow_Mode:1 blur:0.1 shadow_Transparent:true aa_threshold:(color 0 0 0)
if (areaShadows) then
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment