-
Notifications
You must be signed in to change notification settings - Fork 14
Hlsl path tracer #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devshgraphicsprogramming
wants to merge
78
commits into
master
Choose a base branch
from
hlsl_path_tracer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Hlsl path tracer #224
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
eab0f70
copied ex 30 to new ex 31
keptsecret 8521123
ignore events on imgui focus
keptsecret b171724
initial files for pathtracer
keptsecret af35393
intersection logic
keptsecret 5a5fbfe
changes to intersection logic
keptsecret 85e67ad
completed material system?
keptsecret 2c500b1
sphere nee stuff
keptsecret e6a9916
triangle sampling
keptsecret 6dc25eb
rectangle sampling
keptsecret 22bd6f9
nee stuff
keptsecret 3bb858b
scene representation, getmeasure for pt
keptsecret f5adbf6
moved scene rep out, some closest hit stuff
keptsecret 159d153
sample light part of closest hit
keptsecret a7350db
fix bugs, reorganize traceRay
keptsecret 8a4e0a9
sample bsdf in closest hit
keptsecret 72104b8
set up path tracer render shader
keptsecret 202c645
finish render shader
keptsecret 2f77555
hlsl path tracer initial, bug fixes
keptsecret 99aed47
fix shader bugs
keptsecret a1a8ec0
Merge branch 'master' into hlsl_path_tracer
keptsecret a802a97
bug fixes #3
keptsecret eed47e7
fix include when embed resources off
keptsecret 6e26dae
fixed more bugs #4
keptsecret 3827fd3
Merge branch 'master' into hlsl_path_tracer
keptsecret da661c0
fix compile hlsl shader bug
keptsecret f97757b
more bug fixes #5
keptsecret 8e759f2
more bug fixes #6
keptsecret 2dfadfe
Merge branch 'master' into hlsl_path_tracer
keptsecret b1831d9
refactor to use new frisvad
keptsecret cb5662a
fix bugs again
keptsecret 8eaa714
fix intersector, no use intersectdata
keptsecret 4d3e046
removed intersectdata usage, fix emissive bug
keptsecret e7d4670
fixed light sampling nee
keptsecret 077d150
1st working ver, sort of
keptsecret 6abb635
fixed nan and accumulation going black problem
keptsecret 1eee3ca
fixed triangle light, rectangle needs checking
keptsecret 011fbfb
simplified material data
keptsecret 63b64e3
made scene a static global var
keptsecret 7bd69e9
fixed most of rectangle light issues, still red pixels
keptsecret ab0aa12
fix for nan samples
keptsecret 96c7497
revert to intial scene settings
keptsecret b5194ef
Merge branch 'master' into hlsl_path_tracer
keptsecret b483aa6
better hlsl dispatch
keptsecret 773733d
refactor NEE to use templated light types and sampling
keptsecret b889b60
use 1D workgroup dispatch
keptsecret 79ee9da
removed obsolete commented sections
keptsecret ca8f2ec
some minor corrections
keptsecret e95f09d
changed workgroup size to 512
keptsecret 56994a9
workgroup size 512 for sure this time
keptsecret 3cdfb4b
use morton and virtual indexing
keptsecret 5f93cec
reverted virtual index, fix hlsl colors
keptsecret 78de4f5
fixed some bugs for cpp compat
keptsecret f823771
use dropdown, more options
keptsecret 1535561
added persistent workgroup toggle
keptsecret 3400a2a
Merge branch 'master' into hlsl_path_tracer
keptsecret 52c1aa5
ready changes for mesh_loaders merge, requires examples.hpp from mesh…
keptsecret d596f75
merge mesh_loaders, fix conflict
keptsecret c43c93b
cpp fixes so it compiles at least
keptsecret 8b31859
a bazillion fixes since last time bxdf usages changed
keptsecret ac36695
Merge branch 'master' into hlsl_path_tracer
keptsecret 3d206fd
RWMC setup
Przemog1 2107be7
Implemented splatting
Przemog1 57a6a0f
Fixed splatting
Przemog1 389248c
Implemented reweighting
Przemog1 ca8c232
Added "enable RWMC" toggle
Przemog1 04296d9
Added accumulators
Przemog1 6168e14
Fixed cascade settings initialization
Przemog1 8ecc60f
Refactor
Przemog1 bbc8ab8
Fixed rwmc persistent workgroups
Przemog1 3ffe973
Refactor
Przemog1 9c60e99
Merge branch 'master' into hlsl_path_tracer
keptsecret ecbf92d
refactor some bxdf usage
keptsecret badb4a6
Refactored resolve.comp.hlsl
Przemog1 05226bf
refactor bxdf usage
keptsecret aced36c
fix missing hash problem, working path tracer
keptsecret 8b8fab0
added checks to invalid samples
keptsecret d4e5754
merged rwmc, fix conflicts
keptsecret 16c8d42
fix errors from merge
keptsecret File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| include(common RESULT_VARIABLE RES) | ||
| if(NOT RES) | ||
| message(FATAL_ERROR "common.cmake not found. Should be in {repo_root}/cmake directory") | ||
| endif() | ||
|
|
||
| if(NBL_BUILD_IMGUI) | ||
| set(NBL_INCLUDE_SERACH_DIRECTORIES | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/include" | ||
| ) | ||
|
|
||
| list(APPEND NBL_LIBRARIES | ||
| imtestengine | ||
| "${NBL_EXT_IMGUI_UI_LIB}" | ||
| ) | ||
|
|
||
| nbl_create_executable_project("" "" "${NBL_INCLUDE_SERACH_DIRECTORIES}" "${NBL_LIBRARIES}" "${NBL_EXECUTABLE_PROJECT_CREATION_PCH_TARGET}") | ||
|
|
||
| if(NBL_EMBED_BUILTIN_RESOURCES) | ||
| set(_BR_TARGET_ ${EXECUTABLE_NAME}_builtinResourceData) | ||
| set(RESOURCE_DIR "app_resources") | ||
|
|
||
| get_filename_component(_SEARCH_DIRECTORIES_ "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) | ||
| get_filename_component(_OUTPUT_DIRECTORY_SOURCE_ "${CMAKE_CURRENT_BINARY_DIR}/src" ABSOLUTE) | ||
| get_filename_component(_OUTPUT_DIRECTORY_HEADER_ "${CMAKE_CURRENT_BINARY_DIR}/include" ABSOLUTE) | ||
|
|
||
| file(GLOB_RECURSE BUILTIN_RESOURCE_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/${RESOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${RESOURCE_DIR}/*") | ||
| foreach(RES_FILE ${BUILTIN_RESOURCE_FILES}) | ||
| LIST_BUILTIN_RESOURCE(RESOURCES_TO_EMBED "${RES_FILE}") | ||
| endforeach() | ||
|
|
||
| ADD_CUSTOM_BUILTIN_RESOURCES(${_BR_TARGET_} RESOURCES_TO_EMBED "${_SEARCH_DIRECTORIES_}" "${RESOURCE_DIR}" "nbl::this_example::builtin" "${_OUTPUT_DIRECTORY_HEADER_}" "${_OUTPUT_DIRECTORY_SOURCE_}") | ||
|
|
||
| LINK_BUILTIN_RESOURCES_TO_TARGET(${EXECUTABLE_NAME} ${_BR_TARGET_}) | ||
| endif() | ||
| endif() | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnastaZIuk is that needed?