mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Implemented AMD's FSR as a computer shader for upscaling 3D scenes
This commit is contained in:
@@ -29,6 +29,10 @@ def include_file_in_rd_header(filename, header_data, depth):
|
||||
|
||||
while line:
|
||||
|
||||
index = line.find("//")
|
||||
if index != -1:
|
||||
line = line[:index]
|
||||
|
||||
if line.find("#[vertex]") != -1:
|
||||
header_data.reading = "vertex"
|
||||
line = fs.readline()
|
||||
@@ -55,7 +59,14 @@ def include_file_in_rd_header(filename, header_data, depth):
|
||||
|
||||
import os.path
|
||||
|
||||
included_file = os.path.relpath(os.path.dirname(filename) + "/" + includeline)
|
||||
included_file = ""
|
||||
|
||||
if includeline.startswith("thirdparty/"):
|
||||
included_file = os.path.relpath(includeline)
|
||||
|
||||
else:
|
||||
included_file = os.path.relpath(os.path.dirname(filename) + "/" + includeline)
|
||||
|
||||
if not included_file in header_data.vertex_included_files and header_data.reading == "vertex":
|
||||
header_data.vertex_included_files += [included_file]
|
||||
if include_file_in_rd_header(included_file, header_data, depth + 1) is None:
|
||||
|
||||
Reference in New Issue
Block a user