Commit graph

77 commits

Author SHA1 Message Date
shartte
5d32f58344
Make Indigo more closely aligned with vanilla's behavior when (#901)
rendering flat-shaded quads. Use the cull-face (if present)
to determine where the light-value is being sampled from,
and use the light-face to apply diffuse lighting.
Also do not force the light-face to be set to the cull-face,
since some blocks use faces where these are both set and different
(see the insides of a Cauldron for example).
2020-07-24 16:24:33 +01:00
modmuss50
7548be6d43 Revert "Indigo Flat-Shading Lighting Fix (#898)"
This reverts commit 28388fad
2020-07-20 19:52:17 +01:00
shartte
28388fadd8 Indigo Flat-Shading Lighting Fix (#898)
* Make Indigo more closely aligned with vanilla's behavior when
rendering flat-shaded quads. Use the cull-face (if present)
to determine where the light-value is being sampled from,
and use the light-face to apply diffuse lighting.

* Bump Indigo version to 0.3.4
2020-07-20 19:37:34 +01:00
modmuss50
3b4b2c130e Version bump 2020-07-17 16:22:50 +01:00
shartte
1036f7f1f9
Reuse TerrainFallbackConsumer to render vanilla models when (#870)
called from BlockModelRenderer. Fixes #869.
2020-07-17 14:49:30 +01:00
modmuss50
4d66bed54e 1.16.1 + hopefully fix github actions 2020-06-25 17:41:13 +01:00
modmuss50
059ea866ec update mappings 2020-06-09 22:29:07 +01:00
modmuss50
4a01746c06 Merge remote-tracking branch 'origin/1.16' into 1.16 2020-05-29 20:12:35 +01:00
modmuss50
0a73535729 Bump version 2020-05-29 20:11:58 +01:00
grondag
021baa0119
Various Indigo lighting fixes (#640)
* Various lighting fixes

* 20w22a

* Various lighting fixes

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2020-05-29 20:06:29 +01:00
modmuss50
da175ad6ad 20w22a 2020-05-29 15:56:10 +01:00
modmuss50
6c0e72dfcd Bump version 2020-04-20 01:43:57 +01:00
modmuss50
6cbc90d6ae
Fix lighting issues (#583) 2020-04-20 01:42:57 +01:00
modmuss50
c808269fb2 20w14a 2020-04-02 19:28:36 +01:00
modmuss50
372d827d5a 20w13a 2020-03-25 18:20:06 +00:00
modmuss50
d249f7b6d6 20w12a 2020-03-18 20:05:01 +00:00
modmuss50
2f56dff236 Initial port to 20w09a 2020-02-26 19:10:16 +00:00
Player
cfa5f8f26a Bump version 2020-02-10 00:58:35 +01:00
2xsaiko
4c75723827 Check cullface after transform 2020-02-10 00:53:22 +01:00
modmuss50
820cd5cf1d Remove unused import 2020-02-05 19:36:30 +00:00
modmuss50
9421522d5a 20w06a 2020-02-05 18:05:59 +00:00
modmuss50
203491ea23 1.15.2-pre1 2020-01-14 20:50:51 +00:00
modmuss50
175d0eb82e Fix render offset not being applied.
Fixes flower and other blocks always rendering in the center of the block
2019-12-28 07:51:56 +00:00
modmuss50
d830abd6cf Work around odd crash in OpenJ9 due to an anonymous in a mixin. 2019-12-10 21:26:24 +00:00
modmuss50
821cdba74e 1.15-pre7 - mapping changes 2019-12-09 21:40:36 +00:00
modmuss50
ec40b2e12c 1.15-pre4
a few mapping changes
2019-12-03 17:02:41 +00:00
modmuss50
ea865a1450 Fix crash on startup
Required as mixin was complaining: target requires method signature because enclosing type information for net.minecraft.client.render.chunk.ChunkBuilder$BuiltChunk$RebuildTask is unavailable
2019-11-29 00:29:17 +00:00
modmuss50
06c939b35c 1.15-pre3 - just mapping changes 2019-11-28 19:40:14 +00:00
grondag
1e5e53014d Fix gui item rendering (issue #412 PR #443) 2019-11-28 08:03:04 +00:00
modmuss50
2775144ad8 Fix NPE in MixinChunkRebuildTask Closes #436 2019-11-26 15:37:59 +00:00
modmuss50
f3d8141bae 1.15-pre1 2019-11-21 21:04:17 +00:00
modmuss50
6c2678816a 19w46a 2019-11-13 17:41:46 +00:00
modmuss50
f947d671a1 19w45b + Fix missed optional mixin fixes
MixinChunkRebuildTask should have been ported yesterday, but it was only logging out a warning.
2019-11-08 13:23:12 +00:00
modmuss50
12515ed9ee 19w45a 2019-11-07 20:35:26 +00:00
Player
b7f9825dbb Add checkstyle verification for package names, fix non-API packages. 2019-11-03 20:14:45 +01:00
modmuss50
ce77399215 19w44a
Only yarn renames
2019-10-30 17:10:30 +00:00
Player
dfdb52d6e5 Add checkstyle, format existing code accordingly. 2019-10-27 15:40:26 +01:00
grondag
b8dee3c017 Fix breaking render for API models (#406)
* Fix breaking render for API models

* Bump versions
2019-10-19 19:29:48 +01:00
grondag
0f869edf26 Fix indigo rendering in 19w42a (#405)
* Fix indigo rendering in 19w42a
* Prevent crashes for modded item rendering

VertexConsumer now thows unless all vertex elements are populated.  Overlay UV coordinates are thus required for block breaking, item glint, etc.  Block breaking doesn't seem to work fully for non-vanilla models, but cause isn't yet clear.
2019-10-17 15:54:54 +00:00
modmuss50
d2e3099f39 19w42a
Includes a work around for the funky rendering issues, this will need looking into some more.
2019-10-16 18:54:16 +01:00
modmuss50
ccd269cfad 19w41a 2019-10-09 19:05:13 +01:00
modmuss50
da5bc0bb05 19w40a 2019-10-02 15:48:19 +01:00
grondag
32ac36d518
1.14 Updates and Render Fixes (#394)
* Fix EntityRenderDispatcher hook (again)

* Add fabric-particles-v1

* Add a sync() method to BlockEntityClientSerializable

* Prevent CME due to off-thread block entity updates (#367)

* Restore rendering features disabled in first 19w39a release

* Remove rendering stuffs no longer needed due to snapshots

* Bump versions as needed
2019-09-29 18:21:38 -07:00
Modmuss50
9c45b1ef78 Wip 19w39a (#386)
* 19w39a fixes (#387)

* Bump versions

* Breaks: BlockEntityRendererRegistry and EntityRendererRegistry

* Remove broken parts of rendering, bump major version

* Add renderer-registries, replaces broken parts of rendering api

* Slap a band-aid on renderer/Indigo - won't render properly, but runs

* Bump distribution versions, add renderer-registries to main build

* Clean up blockrenderlayer implementation package name
2019-09-28 18:07:04 -07:00
grondag
a5d709c3e1
1.15 Rendering Cleanup (#376)
* Make whitespace more consistent with Fabric norms
* Remove implementation of disabled multi-sprite quad feature
* Simplify quad header encoding - most attributes are now directly encoded to array data
* Simplify material encoding - exploiting low number of possible materials
* Add minimal validations related to sprite index
* Codify magic numbers and make derivations more clear/explicit
* Fix defect #374
* Bump patch versions
* Use unmodified vanilla AO calculator
2019-09-24 07:27:27 -07:00
grondag
d2ac651a7a
19w38b API Fixes (#370)
* Fix compilation errors (untested)

* Random fixes

* Various modded rendering fixes

* Restore contract of RenderAttachedBlockView

* Bump versions as needed

* Add API for BlockRenderLayer

* Minor format / name cleanup

Will do a more comprehensive pass as part of separate refactor PR

* Bump versions not handled earlier

* Bump loader/mc bounds for dependent modules

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Minor clean ups

* Improve docs, minor format corrections.

* Update MC dependency
2019-09-20 16:50:49 -07:00
modmuss50
7533b848b5 19w38b - start the port, does not compile just yet. 2019-09-18 18:16:25 +01:00
Prospector
5ed88c193a Add more metadata to the modules (#353)
* Add fabric-api-base as a dep to fabric-networking-v0
2019-09-09 01:48:43 +02:00
modmuss50
b4f62fb5a7 Update fabric-loader to replace deprecated methods 2019-08-28 22:17:50 +01:00
modmuss50
27da48aaf2 19w35a 2019-08-28 18:59:15 +01:00