Commit Graph

17 Commits

Author SHA1 Message Date
DeMuenu
75aa74fcf2 Update README.md 2025-09-30 15:42:30 +02:00
DeMuenu
b714c7c33a Update README.md 2025-09-30 10:38:17 +02:00
DeMuenu
bce6fbdc3d Merge pull request #3 from DeMuenu/normal-maps-main-shader
Replace multiply texture with normal map support
2025-09-29 18:49:50 +02:00
DeMuenu
1f1f6f795d Replace multiply texture with normal map support
Removed the multiply texture and its strength property, and added support for a normal map with adjustable strength. Updated vertex and fragment shaders to handle tangent space and normal mapping, improving surface detail rendering.
2025-09-29 01:11:47 +02:00
DeMuenu
8780f50ebc Fixed stuff I broke by merging :-P
also twerked the waves a bit
2025-09-27 01:04:28 +02:00
DeMuenu
b94c52da3c Rename shader light variables to Udon-prefixed versions
Updated all relevant shader files and C# script to use Udon-prefixed light and player variables (e.g., _Udon_LightPositions, _Udon_LightColors, _Udon_PlayerCount) for consistency and to avoid naming conflicts. This change affects variable declarations, macro definitions, and all usages in BlendinShader, LitParticles, Water shaders, and included HLSL files.
2025-09-26 23:13:06 +02:00
DeMuenu
7189afee7b Merge pull request #2 from DeMuenu/optimise
Optimise stuff
2025-09-26 20:32:46 +02:00
DeMuenu
2c4a0e73b1 Merge pull request #1 from DeMuenu/MakeModular
Make modular
2025-09-26 20:17:34 +02:00
DeMuenu
dc939d0ef6 Add WaterParticle shader and minor water shader tweaks
Introduced a new WaterParticle shader for rendering water particles with alpha blending. Made minor formatting and calculation adjustments in Water.shader and DefaultSetup.hlsl, and updated Variables.hlsl. Added corresponding .meta files for new shader assets.
2025-09-26 20:11:49 +02:00
DeMuenu
e5f18d7464 Update README.md 2025-09-26 17:56:36 +02:00
DeMuenu
c7e2397d81 Update shader property handling for VRCShader API
Changed shader property names to use '_Udon_' prefix and switched to using VRCShader.PropertyToID and VRCShader.SetGlobal* methods for setting shader properties. Added update throttling in LateUpdate for performance. These changes improve compatibility and efficiency with the VRC SDK3 Rendering API.
2025-09-26 17:31:00 +02:00
DeMuenu
0f049de062 Refactor Moonlight lighting system in shaders
Replaces direct variable declarations and code blocks related to 'MoonsLight' with a new 'MoonlightGlobalVariables' macro included from Variables.hlsl. Adds OutLoopSetup macro for loop setup, updates all relevant shaders to use the new macros, and renames comments and identifiers from 'MoonsLight' to 'Moonlight' for consistency. Removes the obsolete MoonsLight.cingc include and its meta file.
2025-09-25 16:09:24 +02:00
DeMuenu
07730827f4 Refactor lighting code and add wave support to shaders
Modularized lighting calculations by introducing DefaultSetup.hlsl and Lambert.hlsl includes, and updated BlendinShader, LitParticles, and Water shaders to use these macros. Added new wave-related properties and logic to Water.shader for enhanced wave effects. Improved maintainability and consistency across shaders by centralizing light and Lambertian diffuse calculations.
2025-09-25 02:21:26 +02:00
DeMuenu
b9bfd0b559 Refactor light calculations into LightStrength.hlsl include
Moved light type calculation logic from BlendinShader.shader to a new include file, LightStrength.hlsl, for better modularity and maintainability. Updated the shader to use the new macro for light calculations, improving code clarity and reducing duplication.
2025-09-24 17:51:23 +02:00
DeMuenu
8f0fb9ab7c Update README.md
Fixed typo, and added light maps as a goal
2025-09-24 16:45:41 +02:00
DeMuenu
25aa259a38 Add initial README with project overview
Introduces a README file describing the MoonlightVRC project, its features, performance notes, quick start instructions, editor preview details, tips, and contribution guidelines.
2025-09-24 16:20:42 +02:00
DeMuenu
c5adc24bb0 Initial commit 2025-09-24 09:41:56 +02:00