Skip to content

Commit

Permalink
Client: Enable vertex fog for all relevant RSW scenes
Browse files Browse the repository at this point in the history
Kind of hacky, but once the resources API is streamlined it'll probably be easier to actually test that this works as intended...
  • Loading branch information
rdw-software committed Jan 31, 2024
1 parent dd24929 commit 6a37b28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/FileFormats/RagnarokMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ local RagnarokGND = require("Core.FileFormats.RagnarokGND")
local RagnarokGRF = require("Core.FileFormats.RagnarokGRF")
local RagnarokRSW = require("Core.FileFormats.RagnarokRSW")

local C_Resources = require("Core.NativeClient.C_Resources")

local NormalsVisualization = require("Core.NativeClient.DebugDraw.NormalsVisualization")

local uv = require("uv")
Expand Down Expand Up @@ -64,6 +66,9 @@ function RagnarokMap:Construct(mapID, fileSystem)
}
scene.directionalLight = sun

-- Not really testable with how the resource management works currently; should improve later
scene.fogParameters = C_Resources.PERSISTENT_RESOURCES["data/fogparametertable.txt"][mapID]

printf("[RagnarokMap] Entering world %s (%s)", mapID, scene.displayName)

return scene
Expand Down

0 comments on commit 6a37b28

Please sign in to comment.