Comments (5)
Isn't what you want //kage:unit texels
?
from ebiten.
Oh, so you want to have [0, 1] values for source and destination regions. Unfortunately this is difficult as a source and destination image are on a big texture atlas. It is possible to pass an image size as uniform variables, but this prevents batching. I think I don't introduce a new mode.
from ebiten.
Hi, thanks for answering this. Yes, texel mode was indeed what I wanted :)
from ebiten.
Note that, even with the texel mode, the value range might not be [0, 1] as images are on a big texture atlas in general.
from ebiten.
Yes I know, I need to take the source image origin into account.
from ebiten.
Related Issues (20)
- text/v2: Draw performances using DrawImage HOT 13
- ebitenutil: DebugPrint ignoring image origin HOT 5
- SetWindowSize() and Layout() sizes not matching at fractional display scale factors HOT 1
- png.Encode panics when give *ebiten.Image as the argument HOT 2
- internal/graphicsdriver/metal/*: rename functions to follow Objective-C way
- .github/workflows: Wasm tests often fail with `websocket url timeout reached` HOT 1
- shaderprecomp: add tests
- internal/graphicsdriver/directx, internal/graphicsdriver/metal: use precompiled shader for bulitin shaders
- shaderprecomp: implement for Android
- ebiten: add a new API to return the logical screen size (= the result of Layout) HOT 5
- Feature request: Ability to set the pixel density of the HTML canvas HOT 1
- Weird behaviour when LayoutF returns small sizes, e.g. 1.33,1.00 HOT 8
- Kage: compilation panic on partial function expr
- ebiten: remove `ColorScaleMode`
- all: use iterators wherever possible
- cmd/ebitenmobile: cannot build game with ebitenmobile bind HOT 4
- Kage: if-none condition
- .github/workflows: `go vet` fails on the test bot with Go 1.18
- .github/workflows: 32bit Linux test fails
- audio/mp3, audio/vorbis, audio/wav: add `(*Stream).SampleRate()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebiten.