Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Add LightSystem feature#36

Merged
ufocoder merged 10 commits intoufocoder:mainfromdmitriypereverza:lights-feature
Dec 8, 2024

Conversation

dmitriypereverza
Copy link
Collaborator

image

AddedLightSystem. Now for each position on map we can ask lightLevel in this point.

In LightSystem class we have few settings

privateupdatePerSecond=30;// lights update rateprivatequality=16;// how accured shadows looks likeprivateglobalLightLevel=0.1;// global lightprivatelightBias=0.01;// just offset the depth of the surface (or the shadow map) by a small bias amount such that the fragments are not incorrectly considered above the surface

image

implemented DDA algorithm for faster ray casting.

  • rewriteEntityRender
  • now eachEntityRender implement getArmature method that used for buildinglightMap and display map element inMiniMap

also made optimisation inRenderSystem (there was a performance issue, after implement lights)

add prettier (there was many merge conflicts, unified code format helps with it)

grouped utils by usage target

# Conflicts:#package-lock.json#package.json#src/global.d.ts#src/lib/ecs/systems/DoorsSystem.ts#src/lib/ecs/systems/RenderSystem/EntityRenders/DoorRender.ts#src/lib/ecs/systems/RenderSystem/EntityRenders/IEntityRender.ts#src/lib/ecs/systems/RenderSystem/EntityRenders/WallRender.ts#src/lib/ecs/systems/RenderSystem/index.ts#src/lib/scenario.ts
# Conflicts:#package-lock.json#package.json
@dmitriypereverzadmitriypereverza self-assigned thisDec 7, 2024
@ufocoderufocoder merged commit8de59d2 intoufocoder:mainDec 8, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ufocoderufocoderufocoder approved these changes

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dmitriypereverza@ufocoder

[8]ページ先頭

©2009-2025 Movatter.jp